clippy: Fix clippy version 0.1.60

Fix clippy lints from clippy 0.1.60 (7737e0b 2022-04-04).

Signed-off-by: Felix Obenhuber <felix@obenhuber.de>
This commit is contained in:
Felix Obenhuber
2022-04-27 11:56:02 +02:00
parent 1df6e7a26e
commit 92122de48d
8 changed files with 14 additions and 18 deletions

View File

@@ -771,7 +771,7 @@ impl fmt::Display for MaxValue {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
MaxValue::Max => write!(f, "max"),
MaxValue::Value(num) => write!(f, "{}", num.to_string()),
MaxValue::Value(num) => write!(f, "{}", num),
}
}
}