all: remove dead code
This commit is contained in:
parent
a20008d446
commit
8cee61122e
32 changed files with 9 additions and 145 deletions
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue