Apply more suggestions.
This commit is contained in:
@@ -486,7 +486,7 @@ fn dayname_end<'b, 'g, 'r, 's>(
|
||||
}))(input)
|
||||
}
|
||||
|
||||
const fn time<'c>(
|
||||
const fn time(
|
||||
allow_rest: bool,
|
||||
) -> impl for<'b, 'g, 'r, 's> Fn(RefContext<'b, 'g, 'r, 's>, OrgSource<'s>) -> Res<OrgSource<'s>, Time<'s>>
|
||||
{
|
||||
@@ -590,6 +590,7 @@ fn time_range_rest_end<'b, 'g, 'r, 's>(
|
||||
tag("-"),
|
||||
parser_with_context!(time(true))(&parent_node),
|
||||
)))(input);
|
||||
#[allow(clippy::let_and_return)] // otherwise parent_node does not live long enough.
|
||||
exit_contents
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user