From a005b5b5687a44f3b9d4ada7b8112c7ba0e9aee9 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Wed, 20 Mar 2024 14:52:52 +0900 Subject: [PATCH] codegen: Tweak imports --- tools/codegen/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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),