diff options
author | jkozlowski <mail@jakub-kozlowski.com> | 2018-09-22 22:54:36 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-09-25 01:59:57 +0200 |
commit | ad2227b1e3acc6478fc2cc85d89ed5ac9f029cab (patch) | |
tree | 235d0fe5f7ce486f4dd58caef5deb7e30bc72f3c /src/codegen/impl_debug.rs | |
parent | 65f6779fd8bd677a9ab8077f0006787ed2094408 (diff) |
Indicate the anonymous lifetime in Formatter.
Diffstat (limited to 'src/codegen/impl_debug.rs')
-rw-r--r-- | src/codegen/impl_debug.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 ),*) } } |