Skip to content

Commit

Permalink
Enforce important cast-related lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed May 31, 2024
1 parent 7449af3 commit 125a3e6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,14 @@
#![no_std]
#![warn(rust_2018_idioms, unused_lifetimes, missing_docs)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![deny(
clippy::unnecessary_cast,
clippy::cast_lossless,
clippy::cast_possible_truncation,
clippy::cast_possible_wrap,
clippy::cast_precision_loss,
clippy::cast_sign_loss
)]

#[macro_use]
extern crate cfg_if;
Expand Down

0 comments on commit 125a3e6

Please sign in to comment.