diff --git a/tools/codegen/src/main.rs b/tools/codegen/src/main.rs index a820005e..b5d220c9 100644 --- a/tools/codegen/src/main.rs +++ b/tools/codegen/src/main.rs @@ -1,7 +1,7 @@ // SPDX-License-Identifier: Apache-2.0 OR MIT use std::{ - cmp::Reverse, + cmp::{self, Reverse}, collections::{BTreeMap, BTreeSet}, env, ffi::OsStr, @@ -604,12 +604,12 @@ impl From for Version { } } impl PartialOrd for Version { - fn partial_cmp(&self, other: &Self) -> Option { + fn partial_cmp(&self, other: &Self) -> Option { Some(self.cmp(other)) } } impl Ord for Version { - fn cmp(&self, other: &Self) -> std::cmp::Ordering { + fn cmp(&self, other: &Self) -> cmp::Ordering { fn convert(v: &Version) -> semver::Version { semver::Version { major: v.major.unwrap_or(u64::MAX),