rust-lang / rust-clippy

A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/clippy/
https://rust-lang.github.io/rust-clippy/
Other
11.45k stars 1.54k forks source link

`deny_lints` #11822

Open JonathanWoollett-Light opened 12 months ago

JonathanWoollett-Light commented 12 months ago

What it does

Warns when you deny on lints e.g. #![deny(missing_docs)].

Advantage

Drawbacks

Example

#![deny(missing_docs)]

Could be written as:

#![warn(missing_docs)]
Jarcho commented 12 months ago

You could just build with --cap-lints warn which gets the same thing.

JonathanWoollett-Light commented 11 months ago

You could just build with --cap-lints warn which gets the same thing.

Thank you this is useful.