Skip to content

Commit

Permalink
apply suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Philipp Krones <[email protected]>
  • Loading branch information
y21 and flip1995 authored May 24, 2023
1 parent 95b5a7b commit c70f2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_dev/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c70f2a2

Please sign in to comment.