Fix #[warn(elided_named_lifetimes)]

This commit is contained in:
Takashi Kokubun 2025-02-10 15:07:34 -08:00
parent f3b673d062
commit 8d1c404dc1
Notes: git 2025-04-18 13:49:11 +00:00

View File

@ -129,11 +129,11 @@ struct FunctionPrinter<'a> {
} }
impl<'a> FunctionPrinter<'a> { impl<'a> FunctionPrinter<'a> {
fn from(fun: &'a Function) -> FunctionPrinter { fn from(fun: &'a Function) -> FunctionPrinter<'a> {
FunctionPrinter { fun, display_snapshot: false } FunctionPrinter { fun, display_snapshot: false }
} }
fn with_snapshot(fun: &'a Function) -> FunctionPrinter { fn with_snapshot(fun: &'a Function) -> FunctionPrinter<'a> {
FunctionPrinter { fun, display_snapshot: true } FunctionPrinter { fun, display_snapshot: true }
} }
} }