[clippy] since Rust 1.74 linter options can be specified in Cargo.toml
This commit is contained in:
parent
b47629cd86
commit
3757b01295
@ -9,6 +9,15 @@ version = "0.4"
|
||||
default-features = false
|
||||
features = ["std", "clock"]
|
||||
|
||||
[lints.rust]
|
||||
unsafe_code = "forbid"
|
||||
|
||||
[lints.clippy]
|
||||
pedantic = "warn"
|
||||
todo = "warn"
|
||||
unwrap_used = "warn"
|
||||
inline_always = "allow"
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
debug = false
|
||||
|
@ -1,8 +1,3 @@
|
||||
#![warn(clippy::pedantic)]
|
||||
#![warn(clippy::todo)]
|
||||
#![warn(clippy::unwrap_used)]
|
||||
#![allow(clippy::inline_always)]
|
||||
|
||||
use std::{
|
||||
env::args,
|
||||
fs::File,
|
||||
|
Loading…
x
Reference in New Issue
Block a user