Skip to content

Commit efe28ee

Browse files
committed
Remove inner allows
1 parent 87b461e commit efe28ee

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/driver.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#![warn(rust_2018_idioms, unused_lifetimes)]
88
// warn on rustc internal lints
99
#![warn(rustc::internal)]
10-
#![allow(clippy::ignored_unit_patterns)]
1110

1211
// FIXME: switch to something more ergonomic here, once available.
1312
// (Currently there is no way to opt into sysroot crates without `extern crate`.)
@@ -165,13 +164,15 @@ impl rustc_driver::Callbacks for ClippyCallbacks {
165164
}
166165
}
167166

167+
#[allow(clippy::ignored_unit_patterns)]
168168
fn display_help() {
169169
println!("{}", help_message());
170170
}
171171

172172
const BUG_REPORT_URL: &str = "https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml";
173173

174174
#[allow(clippy::too_many_lines)]
175+
#[allow(clippy::ignored_unit_patterns)]
175176
pub fn main() {
176177
let handler = EarlyErrorHandler::new(ErrorOutputType::default());
177178

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
22
// warn on lints, that are included in `rust-lang/rust`s bootstrap
33
#![warn(rust_2018_idioms, unused_lifetimes)]
4-
#![allow(clippy::ignored_unit_patterns)]
54

65
use std::env;
76
use std::path::PathBuf;
87
use std::process::{self, Command};
98

109
use anstream::println;
1110

11+
#[allow(clippy::ignored_unit_patterns)]
1212
fn show_help() {
1313
println!("{}", help_message());
1414
}
1515

16+
#[allow(clippy::ignored_unit_patterns)]
1617
fn show_version() {
1718
let version_info = rustc_tools_util::get_version_info!();
1819
println!("{version_info}");

0 commit comments

Comments
 (0)