[clippy] since Rust 1.74 linter options can be specified in Cargo.toml

This commit is contained in:
Paul Schulze 2023-11-17 11:25:28 +01:00
parent b47629cd86
commit 3757b01295
2 changed files with 9 additions and 5 deletions

View File

@ -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

View File

@ -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,