Skip to content

Commit 8499fa5

Browse files
authored
Merge pull request #25 from tcharding/12-30-rm-methods
Remove unnecessary methods
2 parents 439a193 + ba38763 commit 8499fa5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/lib.rs

-10
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,6 @@ impl<T> Ordered<T> {
109109
/// This allows: `let found = map.get(Ordered::from_ref(&a));`
110110
#[allow(clippy::ptr_as_ptr)]
111111
pub fn from_ref(value: &T) -> &Self { unsafe { &*(value as *const _ as *const Self) } }
112-
113-
/// Returns a reference to the inner object.
114-
///
115-
/// We also implement [`core::borrow::Borrow`] so this function is never explicitly needed.
116-
pub const fn as_inner(&self) -> &T { &self.0 }
117-
118-
/// Returns the inner object.
119-
///
120-
/// We also implement [`core::ops::Deref`] so this function is never explicitly needed.
121-
pub fn into_inner(self) -> T { self.0 }
122112
}
123113

124114
impl<T: ArbitraryOrd> ArbitraryOrd for &T {

0 commit comments

Comments
 (0)