Skip to content

Commit d29aa27

Browse files
committed
Enforce important cast-related lints.
1 parent 2cdf331 commit d29aa27

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lib.rs

+8
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,14 @@
208208
#![no_std]
209209
#![warn(rust_2018_idioms, unused_lifetimes, missing_docs)]
210210
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
211+
#![deny(
212+
clippy::unnecessary_cast,
213+
clippy::cast_lossless,
214+
clippy::cast_possible_truncation,
215+
clippy::cast_possible_wrap,
216+
clippy::cast_precision_loss,
217+
clippy::cast_sign_loss
218+
)]
211219

212220
#[macro_use]
213221
extern crate cfg_if;

0 commit comments

Comments
 (0)