From a9ec9a8b3edfb5c5e4ae194f843e789f096de2cc Mon Sep 17 00:00:00 2001 From: Jonathan Browne <12983479+JBYoshi@users.noreply.github.com> Date: Wed, 30 Aug 2023 20:01:51 +0000 Subject: [PATCH] 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 <12983479+JBYoshi@users.noreply.github.com> --- .cargo/config | 1 + 1 file changed, 1 insertion(+) diff --git a/.cargo/config b/.cargo/config index a50af8c383c..975dda6de2b 100644 --- a/.cargo/config +++ b/.cargo/config @@ -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",