Fix clippy for rust 1.53

There are new lints are added in clippy for rust 1.53

Signed-off-by: Tim Zhang <tim@hyper.sh>
This commit is contained in:
Tim Zhang
2021-06-30 19:05:38 +08:00
parent 45b626e0c0
commit ec4cda1dd9
6 changed files with 16 additions and 13 deletions
+1
View File
@@ -738,6 +738,7 @@ impl Default for MaxValue {
}
impl MaxValue {
#[allow(clippy::should_implement_trait, clippy::wrong_self_convention)]
fn to_i64(&self) -> i64 {
match self {
MaxValue::Max => -1,