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

Fix clippy::let_underscore_untyped lint violations on latest nightly #182

Merged
merged 1 commit into from
Feb 28, 2023

Conversation

lopopolo
Copy link
Member

error: non-binding `let` without a type annotation
   --> src/mt.rs:532:9
    |
532 |         let _ = Mt19937GenRand32::new_with_key(iter::empty());
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: consider adding a type annotation or removing the `let` keyword
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
note: the lint level is defined here
   --> src/lib.rs:13:9
    |
13  | #![deny(clippy::pedantic)]
    |         ^^^^^^^^^^^^^^^^
    = note: `#[deny(clippy::let_underscore_untyped)]` implied by `#[deny(clippy::pedantic)]`

error: non-binding `let` without a type annotation
   --> src/mt64.rs:513:9
    |
513 |         let _ = Mt19937GenRand64::new_with_key(core::iter::empty());
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: consider adding a type annotation or removing the `let` keyword
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped

error: could not compile `rand_mt` due to 2 previous errors

@lopopolo lopopolo added C-quality Category: Refactoring, cleanup, and quality improvements. A-core Area: Core Mersenne Twister implementation. labels Feb 28, 2023
@lopopolo lopopolo merged commit e208be8 into trunk Feb 28, 2023
@lopopolo lopopolo deleted the lopopolo/nightly-clippy branch February 28, 2023 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Core Mersenne Twister implementation. C-quality Category: Refactoring, cleanup, and quality improvements.
Development

Successfully merging this pull request may close these issues.

1 participant