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