From 89651190a726895c83c2b7d4fb383a65b877a0ae Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Sat, 19 Sep 2020 19:26:12 +0900 Subject: [PATCH] Fix `elided-lifetimes-in-paths` warnings --- src/modint.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modint.rs b/src/modint.rs index 8aa5220..956c440 100644 --- a/src/modint.rs +++ b/src/modint.rs @@ -776,12 +776,12 @@ trait InternalImplementations: ModIntBase { } #[inline] - fn display_impl(this: &Self, f: &mut fmt::Formatter) -> fmt::Result { + fn display_impl(this: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fmt::Display::fmt(&this.val(), f) } #[inline] - fn debug_impl(this: &Self, f: &mut fmt::Formatter) -> fmt::Result { + fn debug_impl(this: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fmt::Debug::fmt(&this.val(), f) }