Skip to content

Commit

Permalink
Enable warnings for clippy::cast_possible_truncation
Browse files Browse the repository at this point in the history
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 <12983479+JBYoshi@users.noreply.github.com>
  • Loading branch information
JBYoshi authored and JonathanWoollett-Light committed Oct 9, 2023
1 parent dc1b567 commit a9ec9a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ rustflags = [
"-Wclippy::ptr_as_ptr",
"-Wclippy::undocumented_unsafe_blocks",
"-Wclippy::cast_lossless",
"-Wclippy::cast_possible_truncation",
"-Wclippy::cast_possible_wrap",
"-Wclippy::cast_sign_loss",
"-Wmissing_debug_implementations",
Expand Down

0 comments on commit a9ec9a8

Please sign in to comment.