Remove no-longer used `IdFunctor::map_id`

This commit is contained in:
Alan Egerton 2021-11-28 15:07:25 +00:00
parent 18bb8c61a9
commit db7295fa96
No known key found for this signature in database
GPG Key ID: 07CAC3CCA7E0643F
2 changed files with 0 additions and 9 deletions

View File

@ -4,14 +4,6 @@ use std::mem;
pub trait IdFunctor: Sized {
type Inner;
#[inline]
fn map_id<F>(self, mut f: F) -> Self
where
F: FnMut(Self::Inner) -> Self::Inner,
{
self.try_map_id::<_, !>(|value| Ok(f(value))).into_ok()
}
fn try_map_id<F, E>(self, f: F) -> Result<Self, E>
where
F: FnMut(Self::Inner) -> Result<Self::Inner, E>;

View File

@ -25,7 +25,6 @@
#![feature(once_cell)]
#![feature(test)]
#![feature(thread_id_value)]
#![feature(unwrap_infallible)]
#![allow(rustc::default_hash_types)]
#![deny(unaligned_references)]