mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
add match_same_arms clippy lint (#8549)
This commit is contained in:
@ -191,10 +191,10 @@ impl Error {
|
||||
Self::WannaRecovery => ffi::MDBX_WANNA_RECOVERY,
|
||||
Self::KeyMismatch => ffi::MDBX_EKEYMISMATCH,
|
||||
Self::DecodeErrorLenDiff | Self::DecodeError => ffi::MDBX_EINVAL,
|
||||
Self::Access => ffi::MDBX_EACCESS,
|
||||
Self::TooLarge => ffi::MDBX_TOO_LARGE,
|
||||
Self::BadSignature => ffi::MDBX_EBADSIGN,
|
||||
Self::WriteTransactionUnsupportedInReadOnlyMode => ffi::MDBX_EACCESS,
|
||||
Self::Access |
|
||||
Self::WriteTransactionUnsupportedInReadOnlyMode |
|
||||
Self::NestedTransactionsUnsupportedWithWriteMap => ffi::MDBX_EACCESS,
|
||||
Self::ReadTransactionTimeout => -96000, // Custom non-MDBX error code
|
||||
Self::Other(err_code) => *err_code,
|
||||
|
||||
Reference in New Issue
Block a user