Skip to content

Commit 3656fdc

Browse files
committed
Use nightly Clippy
rust-lang/rust-clippy#10264 was fixed by rust-lang/rust-clippy#10391. Use nightly Clippy to get the fix.
1 parent a46b03b commit 3656fdc

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
- name: Install dependencies
4141
run: |
4242
rustup update
43+
rustup +nightly component add clippy
4344
cargo install cargo-dylint dylint-link || true
4445
cargo install cargo-license || true
4546
cargo install cargo-sort || true

core/src/backup.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
// https://github.com/smoelius/rustfmt_if_chain/blob/557c32c54b0e0f48da2d029a3a8f70db4c8dbf9b/src/backup.rs
33

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

106
use std::{
117
io::Result,

core/tests/ci_is/enabled.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ fn update() {
175175
fn clippy_command(cargo_args: &[&str], rustc_args: &[&str]) -> Command {
176176
let mut command = Command::new("cargo");
177177
command
178-
.args(["clippy", "--all-features", "--all-targets"])
178+
.args(["+nightly", "clippy", "--all-features", "--all-targets"])
179179
.args(cargo_args)
180180
.args(["--"])
181181
.args(rustc_args)

0 commit comments

Comments
 (0)