localcc / gvas

GVAS file format parsing library for rust
MIT License
18 stars 4 forks source link

Resolve clippy::legacy_numeric_constants error #104

Closed scottanderson closed 1 month ago

scottanderson commented 1 month ago

The rust beta build is failing due to a new clippy rule:

error: importing legacy numeric constants
 --> src/properties/text_property.rs:2:5
  |
2 | use std::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: `-D clippy::legacy-numeric-constants` implied by `-D warnings`
  = help: to override `-D warnings` add `#[allow(clippy::legacy_numeric_constants)]`