From 0cb3649e019d8e2e913056c839c98d27fada6526 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 24 Nov 2023 12:23:29 -0800 Subject: [PATCH] Ignore checked_conversions pedantic clippy lint warning: checked cast can be simplified --> src/fallback.rs:410:13 | 410 | assert!(s.len() <= u32::MAX as usize); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `u32::try_from(s.len()).is_ok()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#checked_conversions = note: `-W clippy::checked-conversions` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::checked_conversions)]` --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 56d986b..c2399c9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -93,6 +93,7 @@ #![allow( clippy::cast_lossless, clippy::cast_possible_truncation, + clippy::checked_conversions, clippy::doc_markdown, clippy::items_after_statements, clippy::iter_without_into_iter,