about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTimo <30553356+y21@users.noreply.github.com>2023-05-24 16:45:18 +0200
committerGitHub <noreply@github.com>2023-05-24 16:45:18 +0200
commitc70f2a2e50a44aa2c09b2179d6182588efb6804f (patch)
treecbf341a626ca1578e36240333c1b4d7a087f7204
parent95b5a7bbe244eb598fe3eb0bfad9eba6dadd7172 (diff)
downloadrust-c70f2a2e50a44aa2c09b2179d6182588efb6804f.tar.gz
rust-c70f2a2e50a44aa2c09b2179d6182588efb6804f.zip
apply suggestion
Co-authored-by: Philipp Krones <hello@philkrones.com>
-rw-r--r--clippy_dev/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_dev/src/main.rs b/clippy_dev/src/main.rs
index 99aa854bc43..c03fbe9d275 100644
--- a/clippy_dev/src/main.rs
+++ b/clippy_dev/src/main.rs
@@ -182,7 +182,7 @@ fn get_clap_config() -> ArgMatches {
                         .long("name")
                         .help("Name of the new lint in snake case, ex: fn_too_long")
                         .required(true)
-                        .value_parser(|name: &str| Ok::<_, Infallible>(name.replace("-", "_"))),
+                        .value_parser(|name: &str| Ok::<_, Infallible>(name.replace('-', "_"))),
                     Arg::new("category")
                         .short('c')
                         .long("category")