Skip to content

Commit 432a1d7

Browse files
committed
style: lints
1 parent de1b0cf commit 432a1d7

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ documentation = "https://docs.rs/std-next"
1010
categories = ["rust-patterns"]
1111
keywords = ["std", "polyfill", "utility"]
1212

13+
[lints.rust]
14+
unsafe_code = "deny"
15+
16+
[lints.clippy]
17+
all = { level = "deny", priority = -1 }
18+
pedantic = { level = "deny", priority = -1 }
19+
cargo = { level = "deny", priority = -1 }
20+
1321
[lib]
1422
name = "stdx"
1523

src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(unsafe_code)]
2-
#![deny(clippy::all, clippy::pedantic, clippy::cargo)]
31
#![allow(
42
clippy::inline_always,
53
clippy::missing_errors_doc, // TODO

0 commit comments

Comments
 (0)