Skip to content

Commit

Permalink
Fix clippy warnings as of Rust 1.67 (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
romac authored Jan 27, 2023
1 parent d71a1d0 commit 10a0acb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/google.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/protobuf/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ impl Error {
E: Display,
T: TryFrom<Raw, Error = E>,
{
Error::try_from_protobuf(format!("{}", e))
Error::try_from_protobuf(format!("{e}"))
}
}

0 comments on commit 10a0acb

Please sign in to comment.