Skip to content

Commit

Permalink
Use nightly Clippy
Browse files Browse the repository at this point in the history
rust-lang/rust-clippy#10264 was fixed by
rust-lang/rust-clippy#10391.

Use nightly Clippy to get the fix.
  • Loading branch information
smoelius committed Feb 27, 2023
1 parent a46b03b commit ba37435
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions core/src/backup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// https://github.com/smoelius/rustfmt_if_chain/blob/557c32c54b0e0f48da2d029a3a8f70db4c8dbf9b/src/backup.rs

#![allow(dead_code)]
// smoelius: Allow `unwrap_used` until the following issue is resolved:
// https://github.com/rust-lang/rust-clippy/issues/10264
#![allow(clippy::unwrap_used)]
#![cfg_attr(dylint_lib = "overscoped_allow", allow(overscoped_allow))]

use std::{
io::Result,
Expand Down
2 changes: 1 addition & 1 deletion core/tests/ci_is/enabled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ fn update() {
fn clippy_command(cargo_args: &[&str], rustc_args: &[&str]) -> Command {
let mut command = Command::new("cargo");
command
.args(["clippy", "--all-features", "--all-targets"])
.args(["clippy", "+nightly", "--all-features", "--all-targets"])
.args(cargo_args)
.args(["--"])
.args(rustc_args)
Expand Down

0 comments on commit ba37435

Please sign in to comment.