Move warnings to Cargo.toml
This commit is contained in:
parent
4001d0653b
commit
22eec53c5a
2 changed files with 16 additions and 17 deletions
16
Cargo.toml
16
Cargo.toml
|
|
@ -17,3 +17,19 @@ promptly = "0.3.1"
|
|||
termcolor = "1.2.0"
|
||||
thiserror = "1.0.38"
|
||||
tzfile = { git = "https://github.com/Garmelon/tzfile.git", branch = "tzdir" }
|
||||
|
||||
[lints]
|
||||
rust.unsafe_code = { level = "forbid", priority = 1 }
|
||||
rust.future_incompatible = "warn"
|
||||
rust.rust_2018_idioms = "warn"
|
||||
rust.noop_method_call = "warn"
|
||||
rust.single_use_lifetimes = "warn"
|
||||
rust.trivial_numeric_casts = "warn"
|
||||
rust.unused = "warn"
|
||||
rust.unused_crate_dependencies = "warn"
|
||||
rust.unused_extern_crates = "warn"
|
||||
rust.unused_import_braces = "warn"
|
||||
rust.unused_lifetimes = "warn"
|
||||
rust.unused_qualifications = "warn"
|
||||
clippy.all = "warn"
|
||||
clippy.use_self = "warn"
|
||||
|
|
|
|||
17
src/main.rs
17
src/main.rs
|
|
@ -1,20 +1,3 @@
|
|||
#![deny(unsafe_code)]
|
||||
// Rustc lint groups
|
||||
#![warn(future_incompatible)]
|
||||
#![warn(rust_2018_idioms)]
|
||||
// Rustc lints
|
||||
#![warn(noop_method_call)]
|
||||
#![warn(single_use_lifetimes)]
|
||||
#![warn(trivial_numeric_casts)]
|
||||
#![warn(unused_crate_dependencies)]
|
||||
#![warn(unused_extern_crates)]
|
||||
#![warn(unused_import_braces)]
|
||||
#![warn(unused_lifetimes)]
|
||||
#![warn(unused_qualifications)]
|
||||
// Clippy lints
|
||||
#![warn(clippy::all)]
|
||||
#![warn(clippy::use_self)]
|
||||
|
||||
mod cli;
|
||||
mod error;
|
||||
mod eval;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue