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
      --> build.rs:43:5
       |
    43 | use std::u32;
       |     ^^^^^^^^
       |
       = help: remove this import
       = note: then `u32::<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: `#[warn(clippy::legacy_numeric_constants)]` on by default
  • Loading branch information
dtolnay committed Apr 6, 2024
1 parent fe99b5f commit 1f1c768
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ use std::iter;
use std::path::Path;
use std::process::{self, Command, Stdio};
use std::str;
use std::u32;

fn main() {
let rustc = rustc_minor_version().unwrap_or(u32::MAX);
Expand Down

0 comments on commit 1f1c768

Please sign in to comment.