diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-07-21 18:42:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-21 18:42:07 +0200 |
| commit | 230b7757195e287a69a1aeff7f54d770aa5baf44 (patch) | |
| tree | 0e7372bd65377765b494ee5e37a72ef6f5ed78ab /compiler/rustc_session | |
| parent | da18bd18cadf5b2f062f8aff5d9020a4f5237245 (diff) | |
| parent | 611bbcb044518b028d08f5d8b4e961c733733942 (diff) | |
| download | rust-230b7757195e287a69a1aeff7f54d770aa5baf44.tar.gz rust-230b7757195e287a69a1aeff7f54d770aa5baf44.zip | |
Rollup merge of #99528 - matthiaskrgr:2022_07_perf, r=estebank
couple of clippy::perf fixes
Diffstat (limited to 'compiler/rustc_session')
| -rw-r--r-- | compiler/rustc_session/src/options.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index f99b20efd71..21b1b0b4ebf 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -535,7 +535,7 @@ mod parse { ) -> bool { match v { Some(s) => { - for s in s.split(",") { + for s in s.split(',') { let Some(pass_name) = s.strip_prefix(&['+', '-'][..]) else { return false }; slot.push((pass_name.to_string(), &s[..1] == "+")); } |
