diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-13 22:58:58 +0100 | 
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-14 12:40:28 +0100 | 
| commit | 97e844a032c47d4b3e70d2043f809767e437ac24 (patch) | |
| tree | 6f1fc68faba406c3525cdc884b8cc211a5c54eae /compiler/rustc_session/src/config.rs | |
| parent | 1796de7bb123df3f3d32124ededf1344434f672e (diff) | |
| download | rust-97e844a032c47d4b3e70d2043f809767e437ac24.tar.gz rust-97e844a032c47d4b3e70d2043f809767e437ac24.zip | |
fix clippy::single_char_pattern perf findings
Diffstat (limited to 'compiler/rustc_session/src/config.rs')
| -rw-r--r-- | compiler/rustc_session/src/config.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs index 5df8a4103b7..50a8f033672 100644 --- a/compiler/rustc_session/src/config.rs +++ b/compiler/rustc_session/src/config.rs @@ -1213,7 +1213,7 @@ pub fn get_cmd_lint_options( if lint_name == "help" { describe_lints = true; } else { - lint_opts_with_position.push((arg_pos, lint_name.replace("-", "_"), level)); + lint_opts_with_position.push((arg_pos, lint_name.replace('-', "_"), level)); } } } | 
