mirror of
https://github.com/lifegpc/pixiv_downloader.git
synced 2026-07-08 01:32:41 +08:00
Update
This commit is contained in:
@@ -27,3 +27,12 @@ impl<T, E> TryErr<T, E> for Option<T> {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<T, E, E2> TryErr<T, E> for Result<T, E2> {
|
||||
fn try_err(self, err: E) -> Result<T, E> {
|
||||
match self {
|
||||
Ok(v) => { Ok(v) }
|
||||
Err(_) => { Err(err) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user