diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-07-17 23:35:57 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2021-07-25 12:25:26 +0200 |
| commit | d709e6efefee52dc74b5f05195d6db3e9bddcd71 (patch) | |
| tree | c2119bdf800f14875d78a6dd831de6b292454ad3 /compiler/rustc_expand/src | |
| parent | dc722bfd74640112c0b7b2c6d1cf348e18c18267 (diff) | |
| download | rust-d709e6efefee52dc74b5f05195d6db3e9bddcd71.tar.gz rust-d709e6efefee52dc74b5f05195d6db3e9bddcd71.zip | |
clippy::single_char_pattern
Diffstat (limited to 'compiler/rustc_expand/src')
| -rw-r--r-- | compiler/rustc_expand/src/proc_macro_server.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/proc_macro_server.rs b/compiler/rustc_expand/src/proc_macro_server.rs index ff135f60a82..b949d885900 100644 --- a/compiler/rustc_expand/src/proc_macro_server.rs +++ b/compiler/rustc_expand/src/proc_macro_server.rs @@ -834,7 +834,7 @@ fn ident_name_compatibility_hack( .flat_map(|c| c.as_os_str().to_str()) .find(|c| c.starts_with("js-sys")) { - let mut version = c.trim_start_matches("js-sys-").split("."); + let mut version = c.trim_start_matches("js-sys-").split('.'); if version.next() == Some("0") && version.next() == Some("3") && version |
