Currently, only the prover dissallows unwraps, see:
|
[lints.clippy] |
|
unwrap_used = "deny" |
Unwraps in tests are still allowed:
|
allow-unwrap-in-tests = true |
We should add this rule to L1 crates one by one and remove unwraps. Ideally we should change it for Errors, but if the error is unrecoverable we should at least use expect.
This ticket should be tackled in many PRs, even more than one PR per crate potentially. At the end, the rules to forbid unwraps should be enforced.
Currently, only the prover dissallows unwraps, see:
ethrex/crates/l2/prover/Cargo.toml
Lines 70 to 71 in a9adf9c
Unwraps in tests are still allowed:
ethrex/crates/l2/clippy.toml
Line 1 in a9adf9c
We should add this rule to L1 crates one by one and remove unwraps. Ideally we should change it for Errors, but if the error is unrecoverable we should at least use
expect.This ticket should be tackled in many PRs, even more than one PR per crate potentially. At the end, the rules to forbid unwraps should be enforced.