Skip to content

Commit

Permalink
Resolve legacy_numeric_constants clippy lints
Browse files Browse the repository at this point in the history
    warning: importing legacy numeric constants
     --> src/layout.rs:1:17
      |
    1 | use core::{mem, usize};
      |                 ^^^^^
      |
      = help: remove this import
      = note: then `usize::<CONST>` will resolve to the respective associated constant
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
      = note: `-W clippy::legacy-numeric-constants` implied by `-W clippy::all`
      = help: to override `-W clippy::all` add `#[allow(clippy::legacy_numeric_constants)]`
  • Loading branch information
dtolnay committed Apr 6, 2024
1 parent 33b0b8f commit 24de24e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layout.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::{mem, usize};
use core::mem;

#[doc(hidden)]
pub struct Layout<T: ?Sized>(T);
Expand Down

0 comments on commit 24de24e

Please sign in to comment.