Skip to content

Commit c70f2a2

Browse files
y21flip1995
andauthored
apply suggestion
Co-authored-by: Philipp Krones <[email protected]>
1 parent 95b5a7b commit c70f2a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_dev/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ fn get_clap_config() -> ArgMatches {
182182
.long("name")
183183
.help("Name of the new lint in snake case, ex: fn_too_long")
184184
.required(true)
185-
.value_parser(|name: &str| Ok::<_, Infallible>(name.replace("-", "_"))),
185+
.value_parser(|name: &str| Ok::<_, Infallible>(name.replace('-', "_"))),
186186
Arg::new("category")
187187
.short('c')
188188
.long("category")

0 commit comments

Comments
 (0)