Skip to content

Commit a9ec9a8

Browse files
JBYoshiJonathanWoollett-Light
authored andcommitted
Enable warnings for clippy::cast_possible_truncation
This commit enables Clippy lint checks for truncating conversions. All code changes to conform to this are included in earlier commits. Signed-off-by: Jonathan Browne <[email protected]>
1 parent dc1b567 commit a9ec9a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.cargo/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ rustflags = [
44
"-Wclippy::ptr_as_ptr",
55
"-Wclippy::undocumented_unsafe_blocks",
66
"-Wclippy::cast_lossless",
7+
"-Wclippy::cast_possible_truncation",
78
"-Wclippy::cast_possible_wrap",
89
"-Wclippy::cast_sign_loss",
910
"-Wmissing_debug_implementations",

0 commit comments

Comments
 (0)