diff --git a/src/lib.rs b/src/lib.rs index 943413fd01..213037b7e5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -295,7 +295,7 @@ impl<'a, T> fmt::Debug for Exclusive<'a, T> where T: fmt::Debug, { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { (**self).fmt(f) } } @@ -304,7 +304,7 @@ impl<'a, T> fmt::Display for Exclusive<'a, T> where T: fmt::Display, { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { (**self).fmt(f) } }