1
0
Fork 0
forked from wry/wry

all: remove dead code

This commit is contained in:
Julian Orth 2024-05-02 19:37:19 +02:00
parent a20008d446
commit 8cee61122e
32 changed files with 9 additions and 145 deletions

View file

@ -106,19 +106,3 @@ impl<T> DespanExt for Option<Spanned<T>> {
self.map(|v| v.value.into())
}
}
pub trait SpannedResultExt1: Sized {
type T;
type E;
fn map_spanned<U, F: FnOnce(Self::T) -> U>(self, f: F) -> Result<Spanned<U>, Self::E>;
}
impl<T, E> SpannedResultExt1 for Result<Spanned<T>, E> {
type T = T;
type E = E;
fn map_spanned<U, F: FnOnce(Self::T) -> U>(self, f: F) -> Result<Spanned<U>, Self::E> {
self.map(|v| v.map(f))
}
}