[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
|
default-features = false
|
||||||
features = ["std", "clock"]
|
features = ["std", "clock"]
|
||||||
|
|
||||||
|
[lints.rust]
|
||||||
|
unsafe_code = "forbid"
|
||||||
|
|
||||||
|
[lints.clippy]
|
||||||
|
pedantic = "warn"
|
||||||
|
todo = "warn"
|
||||||
|
unwrap_used = "warn"
|
||||||
|
inline_always = "allow"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = true
|
lto = true
|
||||||
debug = false
|
debug = false
|
||||||
|
@ -1,8 +1,3 @@
|
|||||||
#![warn(clippy::pedantic)]
|
|
||||||
#![warn(clippy::todo)]
|
|
||||||
#![warn(clippy::unwrap_used)]
|
|
||||||
#![allow(clippy::inline_always)]
|
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
env::args,
|
env::args,
|
||||||
fs::File,
|
fs::File,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user