From ad2227b1e3acc6478fc2cc85d89ed5ac9f029cab Mon Sep 17 00:00:00 2001 From: jkozlowski Date: Sat, 22 Sep 2018 22:54:36 +0100 Subject: Indicate the anonymous lifetime in Formatter. --- src/codegen/impl_debug.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/codegen/impl_debug.rs') diff --git a/src/codegen/impl_debug.rs b/src/codegen/impl_debug.rs index 2c6d36d9..8759bf27 100644 --- a/src/codegen/impl_debug.rs +++ b/src/codegen/impl_debug.rs @@ -45,7 +45,7 @@ pub fn gen_debug_impl( let prefix = ctx.trait_prefix(); quote! { - fn fmt(&self, f: &mut ::#prefix::fmt::Formatter) -> ::#prefix ::fmt::Result { + fn fmt(&self, f: &mut ::#prefix::fmt::Formatter<'_>) -> ::#prefix ::fmt::Result { write!(f, #( #tokens ),*) } } -- cgit v1.2.3