Last active
July 12, 2022 20:48
-
-
Save Fishrock123/bc9232b9bfe8c07b78635eb28a3c6e3c to your computer and use it in GitHub Desktop.
Eaze rustc check & clippy lint rules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![forbid(unsafe_code)] | |
#![deny(future_incompatible)] | |
#![warn( | |
missing_debug_implementations, | |
rust_2018_idioms, | |
trivial_casts, | |
unused_qualifications | |
)] | |
#![doc(test(attr(deny(rust_2018_idioms, warnings))))] | |
#![doc(test(attr(allow(unused_extern_crates, unused_variables))))] | |
#![deny( | |
clippy::debug_assert_with_mut_call, | |
clippy::exit, | |
// clippy::future_not_send, | |
clippy::lossy_float_literal, | |
clippy::mem_forget, | |
clippy::multiple_inherent_impl, | |
clippy::mut_mut, | |
// clippy::unwrap_in_result, | |
clippy::unwrap_used, | |
clippy::wildcard_dependencies, | |
)] | |
#![warn( | |
clippy::dbg_macro, | |
clippy::macro_use_imports, | |
// clippy::multiple_crate_versions, | |
clippy::needless_borrow, | |
clippy::panic, | |
clippy::print_stdout, | |
clippy::trait_duplication_in_bounds, | |
clippy::type_repetition_in_bounds, | |
clippy::unimplemented, | |
clippy::unneeded_field_pattern, | |
clippy::unseparated_literal_suffix, | |
clippy::used_underscore_binding, | |
)] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment