You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried minimising the error, but I struggled to reproduce it. It seems to be intermittent, and occur in slightly different crates each time.
This code does not reproduce the error. But it is responsible for the bounds in the error message:
use thiserror::Error;pubtypeBoxError = Box<dyn std::error::Error + Send + Sync + 'static>;#[derive(Error,Debug,Copy,Clone,Eq,PartialEq)]pubenumRedJubjubError{#[error("Malformed signing key encoding.")]MalformedSigningKey,
...
}#[derive(Error,Debug,PartialEq)]pubenumTransactionError{#[error("bindingSig MUST represent a valid signature under the transaction binding validating key bvk of SigHash")]RedJubjub(RedJubjubError),#[error("Downcast from BoxError to RedJubjubError failed")]InternalDowncastError(String),
...
}implFrom<BoxError>forTransactionError{fnfrom(err:BoxError) -> Self{match err.downcast::<RedJubjubError>(){Ok(e) => TransactionError::RedJubjub(*e),Err(e) => TransactionError::InternalDowncastError(format!("downcast to RedJubjubError failed, original error: {:?}",
e
)),}}}
Command
cd zebra-consensus
cargo clippy --all-targets
The error doesn't occur unless cargo clippy is passed --all-targets.
Code
https://github.com/teor2345/zebra/tree/clippy-ice , zebra-consensus crate
I tried minimising the error, but I struggled to reproduce it. It seems to be intermittent, and occur in slightly different crates each time.
This code does not reproduce the error. But it is responsible for the bounds in the error message:
Command
cd zebra-consensus cargo clippy --all-targets
The error doesn't occur unless
cargo clippy
is passed--all-targets
.The following commands all execute successfully:
cargo test cargo build cargo build --release
Meta
cargo clippy -V
: clippy 0.1.52 (f826641 2021-03-21)rustc -Vv
:Error output
Backtrace
Subsequent Error Output
The text was updated successfully, but these errors were encountered: