Skip to content

Instantly share code, notes, and snippets.

@zakarumych
Last active September 3, 2018 13:04
Show Gist options
  • Save zakarumych/e4ecba5fa03ef4791a36bf06ea7a81e6 to your computer and use it in GitHub Desktop.
Save zakarumych/e4ecba5fa03ef4791a36bf06ea7a81e6 to your computer and use it in GitHub Desktop.
Crate level lint config.
//! Default crate level lint configuration I prefer to keep my code cleaner.
#![forbid(overflowing_literals)]
#![deny(missing_copy_implementations)]
#![deny(missing_debug_implementations)]
#![deny(missing_docs)]
#![deny(intra_doc_link_resolution_failure)]
#![deny(path_statements)]
#![deny(trivial_bounds)]
#![deny(type_alias_bounds)]
#![deny(unconditional_recursion)]
#![deny(unions_with_drop_fields)]
#![deny(unreachable_code)]
#![deny(unreachable_patterns)]
#![deny(while_true)]
#![deny(unused)]
#![deny(bad_style)]
#![deny(future_incompatible)]
#![deny(rust_2018_compatibility)]
#![deny(rust_2018_idioms)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment