diff --git a/src/lib.rs b/src/lib.rs index 88b10e3..c7218e6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -109,16 +109,6 @@ impl Ordered { /// This allows: `let found = map.get(Ordered::from_ref(&a));` #[allow(clippy::ptr_as_ptr)] pub fn from_ref(value: &T) -> &Self { unsafe { &*(value as *const _ as *const Self) } } - - /// Returns a reference to the inner object. - /// - /// We also implement [`core::borrow::Borrow`] so this function is never explicitly needed. - pub const fn as_inner(&self) -> &T { &self.0 } - - /// Returns the inner object. - /// - /// We also implement [`core::ops::Deref`] so this function is never explicitly needed. - pub fn into_inner(self) -> T { self.0 } } impl ArbitraryOrd for &T {