Skip to content

Commit 67f3670

Browse files
committed
Fix CI, apply suggestions
1 parent 8b6085f commit 67f3670

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ rustc_tools_util = "0.3.0"
2626
tempfile = { version = "3.2", optional = true }
2727
termize = "0.1"
2828
color-print = "0.3.4" # Sync version with Cargo
29-
anstream = { version = "0.5.0" }
29+
anstream = "0.5.0"
3030

3131
[dev-dependencies]
3232
ui_test = "0.20"

src/driver.rs

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

1112
// FIXME: switch to something more ergonomic here, once available.
1213
// (Currently there is no way to opt into sysroot crates without `extern crate`.)
@@ -165,7 +166,7 @@ impl rustc_driver::Callbacks for ClippyCallbacks {
165166
}
166167

167168
fn display_help() {
168-
println!("{}", help_message())
169+
println!("{}", help_message());
169170
}
170171

171172
const BUG_REPORT_URL: &str = "https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml";
@@ -269,6 +270,7 @@ pub fn main() {
269270
}))
270271
}
271272

273+
#[must_use]
272274
fn help_message() -> &'static str {
273275
color_print::cstr!(
274276
"Checks a package to catch common mistakes and improve your Rust code.
@@ -299,4 +301,4 @@ You can use tool lints to allow or deny lints from your code, e.g.:
299301
<yellow,bold>#[allow(clippy::needless_lifetimes)]</>
300302
"
301303
)
302-
}
304+
}

src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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)]
45

56
use std::env;
67
use std::path::PathBuf;
@@ -143,6 +144,7 @@ where
143144
}
144145
}
145146

147+
#[must_use]
146148
pub fn help_message() -> &'static str {
147149
color_print::cstr!(
148150
"Checks a package to catch common mistakes and improve your Rust code.

0 commit comments

Comments
 (0)