chitoku-k / edgerouter-exporter

A Prometheus exporter for EdgeRouter
MIT License
23 stars 3 forks source link

Reduce explicit lifetime parameters of `Parser` #343

Closed chitoku-k closed 1 year ago

chitoku-k commented 1 year ago

As Parser only accepts &str as its input, its lifetime does not necessarily have to be generic. This PR changes the arguments that Parser::parse() accepts and introduces a new generic associated type whose lifetime parameter is 'static most of the time.