diff --git a/src/google.rs b/src/google.rs index dfbb3c5a..6034230a 100644 --- a/src/google.rs +++ b/src/google.rs @@ -195,8 +195,7 @@ pub mod protobuf { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!( f, - "{:?} is not representable as a `SystemTime` because it is out of range", - self + "{self:?} is not representable as a `SystemTime` because it is out of range" ) } } diff --git a/src/protobuf/error.rs b/src/protobuf/error.rs index 35fc944d..2ef4f202 100644 --- a/src/protobuf/error.rs +++ b/src/protobuf/error.rs @@ -38,6 +38,6 @@ impl Error { E: Display, T: TryFrom, { - Error::try_from_protobuf(format!("{}", e)) + Error::try_from_protobuf(format!("{e}")) } }