Skip to content

Commit dacbb86

Browse files
devin-ai-integration[bot]Jayant Krishnamurthy
andcommitted
feat(fortuna): Add clippy lint attributes to warn about panic-causing lints
Co-Authored-By: Jayant Krishnamurthy <[email protected]>
1 parent f394787 commit dacbb86

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

apps/fortuna/src/lib.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
#![cfg_attr(
2+
not(test),
3+
warn(
4+
clippy::expect_used,
5+
clippy::indexing_slicing,
6+
clippy::panic,
7+
clippy::panic_in_result_fn,
8+
clippy::todo,
9+
clippy::unimplemented,
10+
clippy::unreachable,
11+
clippy::unwrap_used
12+
)
13+
)]
14+
115
pub mod api;
216
pub mod chain;
317
pub mod command;

apps/fortuna/src/main.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
#![allow(clippy::just_underscores_and_digits)]
2+
#![cfg_attr(
3+
not(test),
4+
warn(
5+
clippy::expect_used,
6+
clippy::indexing_slicing,
7+
clippy::panic,
8+
clippy::panic_in_result_fn,
9+
clippy::todo,
10+
clippy::unimplemented,
11+
clippy::unreachable,
12+
clippy::unwrap_used
13+
)
14+
)]
215

316
use {
417
anyhow::Result,

0 commit comments

Comments
 (0)