Skip to content

Commit b667413

Browse files
committed
forbid unwrap() and expect() in Clippy rules
As a library, intel_fw should not panic. Signed-off-by: Daniel Maslowski <[email protected]>
1 parent 45a80d6 commit b667413

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@ jobs:
1818
- uses: actions/checkout@v4
1919
- name: Build
2020
run: cargo build --verbose
21+
- name: Lint
22+
run: cargo clippy
2123
- name: Run tests
2224
run: cargo test --verbose

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ path = "src/lib.rs"
1111
name = "intel_fw"
1212
path = "src/main.rs"
1313

14+
[lints.clippy]
15+
expect_used = "deny"
16+
unwrap_used = "deny"
17+
1418
[dependencies]
1519
clap = { version = "4.5.48", features = ["derive"] }
1620
env_logger = "0.11.8"

0 commit comments

Comments
 (0)