diff --git a/Cargo.toml b/Cargo.toml index ab8ad8b95..a9adaa426 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -85,28 +85,28 @@ single-use-lifetimes = "warn" trivial-casts = "warn" trivial-numeric-casts = "warn" unreachable-pub = "warn" -unstable-name-collisions = { level = "warn", priority = 1 } # overrides #![deny(future_incompatible)] -unused = "warn" +unused = { level = "warn", priority = -1 } unused-import-braces = "warn" unused-lifetimes = "warn" unused-qualifications = "warn" -# unused-results = "warn" variant-size-differences = "warn" +unstable-name-collisions = { level = "allow", priority = 1 } # overrides #![deny(future_incompatible)], temporary while `.cast_{un}signed()` is unstable + [workspace.lints.clippy] alloc-instead-of-core = "deny" std-instead-of-core = "deny" undocumented-unsafe-blocks = "deny" -all = "warn" +missing-docs-in-private-items = "warn" +all = { level = "warn", priority = -1 } dbg-macro = "warn" decimal-literal-representation = "warn" explicit-auto-deref = "warn" get-unwrap = "warn" manual-let-else = "warn" -missing-docs-in-private-items = "warn" missing-enforced-import-renames = "warn" -nursery = "warn" +nursery = { level = "warn", priority = -1 } obfuscated-if-else = "warn" print-stdout = "warn" semicolon-outside-block = "warn" diff --git a/benchmarks/rand.rs b/benchmarks/rand.rs index 16427477d..37a8df0e9 100644 --- a/benchmarks/rand.rs +++ b/benchmarks/rand.rs @@ -11,7 +11,7 @@ macro_rules! bench_rand { iter_batched_ref!( ben, || StepRng::new(0, 1), - [|rng| rng.gen::<$type>()] + [|rng| rng.r#gen::<$type>()] ); })* } diff --git a/tests/duration.rs b/tests/duration.rs index 99990efef..e1f46e25f 100644 --- a/tests/duration.rs +++ b/tests/duration.rs @@ -1,4 +1,3 @@ -use core::u64; use std::cmp::Ordering; use std::cmp::Ordering::{Equal, Greater, Less}; use std::time::Duration as StdDuration; diff --git a/tests/main.rs b/tests/main.rs index 65d7416cc..bada9e1cb 100644 --- a/tests/main.rs +++ b/tests/main.rs @@ -34,7 +34,7 @@ fn run_with_all_features() -> Result<(), Box> { impl std::error::Error for Error {} let status = std::process::Command::new("cargo") - .args(&["test", "--all-features"]) + .args(["test", "--all-features"]) .status()?; return if status.success() { diff --git a/tests/rand.rs b/tests/rand.rs index c0c49a673..9e6dce6f3 100644 --- a/tests/rand.rs +++ b/tests/rand.rs @@ -7,15 +7,15 @@ fn support() { let mut rng = rand::rngs::mock::StepRng::new(0, 656_175_560); for _ in 0..7 { - let _ = rng.gen::(); + let _ = rng.r#gen::(); } for _ in 0..12 { - let _ = rng.gen::(); + let _ = rng.r#gen::(); } - let _ = rng.gen::