Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve clippy::legacy_numeric_constants error #104

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

scottanderson
Copy link
Collaborator

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)]`

@scottanderson scottanderson requested a review from localcc May 29, 2024 00:02
@scottanderson scottanderson merged commit ad672f7 into localcc:main Jun 4, 2024
4 checks passed
@scottanderson scottanderson deleted the resolve-clippy-error branch June 4, 2024 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant