use edition idioms in the top crate

This commit is contained in:
Jorge Aparicio 2018-12-16 19:16:19 +01:00
parent 56d09a12dd
commit d35f5bc0b0

View file

@ -295,7 +295,7 @@ impl<'a, T> fmt::Debug for Exclusive<'a, T>
where where
T: fmt::Debug, T: fmt::Debug,
{ {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
(**self).fmt(f) (**self).fmt(f)
} }
} }
@ -304,7 +304,7 @@ impl<'a, T> fmt::Display for Exclusive<'a, T>
where where
T: fmt::Display, T: fmt::Display,
{ {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
(**self).fmt(f) (**self).fmt(f)
} }
} }