Skip to content

Commit

Permalink
Deny and forbid almost all lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Aug 27, 2017
1 parent 0dd0594 commit 01cde2d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/untrusted.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,33 @@

#![doc(html_root_url="https://briansmith.org/rustdoc/")]

#![allow(
missing_copy_implementations,
missing_debug_implementations,
)]

// `#[derive(...)]` uses `#[allow(unused_qualifications)]` internally.
#![deny(
unused_qualifications,
)]

#![forbid(
anonymous_parameters,
box_pointers,
fat_ptr_transmutes,
legacy_directory_ownership,
missing_docs,
trivial_casts,
trivial_numeric_casts,
unsafe_code,
unstable_features,
unused_extern_crates,
unused_import_braces,
unused_results,
variant_size_differences,
warnings,
)]

#![no_std]

/// A wrapper around `&'a [u8]` that helps in writing panic-free code.
Expand Down

0 comments on commit 01cde2d

Please sign in to comment.