Remove unused map_slice
This commit is contained in:
parent
ee51a3c10a
commit
0b2d2d1dc5
@ -95,16 +95,6 @@ impl<T: 'static> P<T> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: 'static> P<[T]> {
|
||||
pub fn map_slice<F>(self, f: F) -> P<[T]> where
|
||||
F: FnOnce(Vec<T>) -> Vec<T>
|
||||
{
|
||||
P {
|
||||
ptr: f(self.ptr.into()).into(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: ?Sized> Deref for P<T> {
|
||||
type Target = T;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user