From d586c88321e5bdba17c89902624a7a346552ca0a Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sat, 12 Jun 2021 11:53:37 +0200 Subject: [PATCH] identifiers: Fix unnecessary qualification --- crates/ruma-identifiers/src/macros.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/ruma-identifiers/src/macros.rs b/crates/ruma-identifiers/src/macros.rs index 272c94b8..0a166f71 100644 --- a/crates/ruma-identifiers/src/macros.rs +++ b/crates/ruma-identifiers/src/macros.rs @@ -44,17 +44,17 @@ macro_rules! as_str_based_impls { } } - impl std::cmp::Eq for $id {} + impl Eq for $id {} - impl std::cmp::PartialOrd for $id { + impl PartialOrd for $id { fn partial_cmp(&self, other: &Self) -> Option { - std::cmp::PartialOrd::partial_cmp(self.as_str(), other.as_str()) + PartialOrd::partial_cmp(self.as_str(), other.as_str()) } } - impl std::cmp::Ord for $id { + impl Ord for $id { fn cmp(&self, other: &Self) -> std::cmp::Ordering { - std::cmp::Ord::cmp(self.as_str(), other.as_str()) + Ord::cmp(self.as_str(), other.as_str()) } }