Skip to content

Commit 942e77f

Browse files
committed
Remove SafeImpl
It was never going to be used
1 parent 00bd4f6 commit 942e77f

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

src/lib.rs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,4 @@ extern crate alloc;
33

44
mod string;
55

6-
use core::ops::{Deref, DerefMut};
7-
86
pub use string::RetainMoreString;
9-
10-
/// A wrapper type which implements the traits safely
11-
#[derive(Copy, Clone, Debug, Default, Eq, PartialEq, Hash, Ord, PartialOrd)]
12-
pub struct SafeImpl<T>(pub T);
13-
14-
impl<T> From<T> for SafeImpl<T> {
15-
fn from(it: T) -> Self {
16-
Self(it)
17-
}
18-
}
19-
20-
impl<T> DerefMut for SafeImpl<T> {
21-
fn deref_mut(&mut self) -> &mut Self::Target {
22-
&mut self.0
23-
}
24-
}
25-
26-
impl<T> Deref for SafeImpl<T> {
27-
type Target = T;
28-
29-
fn deref(&self) -> &Self::Target {
30-
&self.0
31-
}
32-
}

0 commit comments

Comments
 (0)