diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 19c4041fb7..28eebdf5c3 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -13,5 +13,5 @@ # limitations under the License. [toolchain] -channel = "1.72.0" +channel = "1.73.0" components = ["rustfmt", "clippy"] diff --git a/src/endpoint.rs b/src/endpoint.rs index 58ea52ed08..e47e0b2298 100644 --- a/src/endpoint.rs +++ b/src/endpoint.rs @@ -125,7 +125,7 @@ impl Ord for Endpoint { impl PartialOrd for Endpoint { fn partial_cmp(&self, other: &Self) -> Option { - self.address.partial_cmp(&other.address) + Some(self.cmp(other)) } }