apply suggestion

Co-authored-by: Philipp Krones <hello@philkrones.com>
This commit is contained in:
Timo 2023-05-24 16:45:18 +02:00 committed by GitHub
parent 95b5a7bbe2
commit c70f2a2e50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")