@@ -142,7 +142,7 @@ pub fn take_until_balanced_allow_nested(
142142
143143/// Parses a single menuentry with title and body commands.
144144#[ allow( dead_code) ]
145- fn parse_menuentry ( input : & str ) -> IResult < & str , MenuEntry > {
145+ fn parse_menuentry ( input : & str ) -> IResult < & str , MenuEntry < ' _ > > {
146146 let ( input, _) = tag ( "menuentry" ) . parse ( input) ?;
147147
148148 // Require at least one space after "menuentry"
@@ -198,7 +198,7 @@ fn skip_to_menuentry(input: &str) -> IResult<&str, ()> {
198198
199199/// Parses all menuentries from a GRUB configuration file.
200200#[ allow( dead_code) ]
201- fn parse_all ( input : & str ) -> IResult < & str , Vec < MenuEntry > > {
201+ fn parse_all ( input : & str ) -> IResult < & str , Vec < MenuEntry < ' _ > > > {
202202 let mut remaining = input;
203203 let mut entries = Vec :: new ( ) ;
204204
@@ -230,7 +230,7 @@ fn parse_all(input: &str) -> IResult<&str, Vec<MenuEntry>> {
230230
231231/// Main entry point for parsing GRUB menuentry files.
232232#[ allow( dead_code) ]
233- pub ( crate ) fn parse_grub_menuentry_file ( contents : & str ) -> anyhow:: Result < Vec < MenuEntry > > {
233+ pub ( crate ) fn parse_grub_menuentry_file ( contents : & str ) -> anyhow:: Result < Vec < MenuEntry < ' _ > > > {
234234 let ( _, entries) = parse_all ( & contents)
235235 . map_err ( |e| anyhow:: anyhow!( "Failed to parse GRUB menuentries: {e}" ) ) ?;
236236 // Validate that entries have reasonable structure
0 commit comments