Merge commit 'f4850f7292' into clippyup

This commit is contained in:
Philipp Krones 2022-11-21 20:34:47 +01:00
parent 3597ed5a09
commit 46c5a5d234
895 changed files with 8247 additions and 18379 deletions

View file

@ -7,8 +7,6 @@ use std::env;
use std::path::PathBuf;
use std::process::{self, Command};
mod docs;
const CARGO_CLIPPY_HELP: &str = r#"Checks a package to catch common mistakes and improve your Rust code.
Usage:
@ -60,7 +58,7 @@ pub fn main() {
if let Some(pos) = env::args().position(|a| a == "--explain") {
if let Some(mut lint) = env::args().nth(pos + 1) {
lint.make_ascii_lowercase();
docs::explain(&lint.strip_prefix("clippy::").unwrap_or(&lint).replace('-', "_"));
clippy_lints::explain(&lint.strip_prefix("clippy::").unwrap_or(&lint).replace('-', "_"));
} else {
show_help();
}