Skip to content

Commit

Permalink
Ignore checked_conversions pedantic clippy lint
Browse files Browse the repository at this point in the history
    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)]`
  • Loading branch information
dtolnay committed Nov 24, 2023
1 parent 73f4d73 commit 0cb3649
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0cb3649

Please sign in to comment.