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