-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Motivation** We should not be using `.expect()` and use Errors instead. **Description** * `expect_used = "deny"` was added to `Cargo.toml` to throw clippy errors on expects. * `.expect()` usage was replaced with errors Closes #1267
- Loading branch information
1 parent
b930c83
commit d74aeff
Showing
16 changed files
with
272 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,4 @@ path = "./l2.rs" | |
|
||
[lints.clippy] | ||
unwrap_used = "deny" | ||
expect_used = "deny" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
allow-unwrap-in-tests = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ path = "./deployer.rs" | |
|
||
[lints.clippy] | ||
unwrap_used = "deny" | ||
expect_used = "deny" |
Oops, something went wrong.