Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit a956e9e

Browse files
committed
Let's not disable lints
1 parent cd641cd commit a956e9e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cargo-fix/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pub fn run() -> Result<(), Error> {
8989
if let Some("2018") = matches.value_of("edition") {
9090
info!("edition upgrade!");
9191
let mut rustc_flags = env::var_os("RUSTFLAGS").unwrap_or_else(|| "".into());
92-
rustc_flags.push("-W rust-2018-breakage -A unused -A nonstandard-style -A bad-style");
92+
rustc_flags.push("-W rust-2018-breakage");
9393
cmd.env("RUSTFLAGS", &rustc_flags);
9494
}
9595

cargo-fix/tests/all/edition_upgrade.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ fn prepare_for_2018() {
1212
.file(
1313
"src/lib.rs",
1414
r#"
15-
#![feature(rust_2018_preview )]
15+
#![allow(unused)]
16+
#![feature(rust_2018_preview)]
1617
1718
mod foo {
1819
pub const FOO: &str = "fooo";

0 commit comments

Comments
 (0)