@@ -142,7 +142,7 @@ pub fn take_until_balanced_allow_nested(
142
142
143
143
/// Parses a single menuentry with title and body commands.
144
144
#[ allow( dead_code) ]
145
- fn parse_menuentry ( input : & str ) -> IResult < & str , MenuEntry > {
145
+ fn parse_menuentry ( input : & str ) -> IResult < & str , MenuEntry < ' _ > > {
146
146
let ( input, _) = tag ( "menuentry" ) . parse ( input) ?;
147
147
148
148
// Require at least one space after "menuentry"
@@ -198,7 +198,7 @@ fn skip_to_menuentry(input: &str) -> IResult<&str, ()> {
198
198
199
199
/// Parses all menuentries from a GRUB configuration file.
200
200
#[ allow( dead_code) ]
201
- fn parse_all ( input : & str ) -> IResult < & str , Vec < MenuEntry > > {
201
+ fn parse_all ( input : & str ) -> IResult < & str , Vec < MenuEntry < ' _ > > > {
202
202
let mut remaining = input;
203
203
let mut entries = Vec :: new ( ) ;
204
204
@@ -230,7 +230,7 @@ fn parse_all(input: &str) -> IResult<&str, Vec<MenuEntry>> {
230
230
231
231
/// Main entry point for parsing GRUB menuentry files.
232
232
#[ 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 < ' _ > > > {
234
234
let ( _, entries) = parse_all ( & contents)
235
235
. map_err ( |e| anyhow:: anyhow!( "Failed to parse GRUB menuentries: {e}" ) ) ?;
236
236
// Validate that entries have reasonable structure
0 commit comments