diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-11-28 06:47:35 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-28 06:47:35 +1100 |
commit | e2858d0bbb13dae202e7da9ee7bbb81916349d1e (patch) | |
tree | c47084e73a9d4c7a852546374069b1aa176c3265 /cli/diagnostics.rs | |
parent | 40bf26b37d82c7a85c3d6a54947fc441eb5e6946 (diff) |
chore: clippy future cleanups (#8514)
Diffstat (limited to 'cli/diagnostics.rs')
-rw-r--r-- | cli/diagnostics.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/diagnostics.rs b/cli/diagnostics.rs index af2a63ad9..419d89a97 100644 --- a/cli/diagnostics.rs +++ b/cli/diagnostics.rs @@ -165,10 +165,10 @@ impl Serialize for DiagnosticCategory { S: Serializer, { let value = match self { - DiagnosticCategory::Warning => 0 as i32, - DiagnosticCategory::Error => 1 as i32, - DiagnosticCategory::Suggestion => 2 as i32, - DiagnosticCategory::Message => 3 as i32, + DiagnosticCategory::Warning => 0_i32, + DiagnosticCategory::Error => 1_i32, + DiagnosticCategory::Suggestion => 2_i32, + DiagnosticCategory::Message => 3_i32, }; Serialize::serialize(&value, serializer) } |