diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-02-26 13:03:46 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-02-27 14:57:22 +0100 |
| commit | 7c84ba112429eb9bc0b99a6fe32a453c920a764c (patch) | |
| tree | 98a44856b3d3b0792b8c9726b34cbbb5a7f34c67 /src/librustc_codegen_llvm | |
| parent | a8437cf213ac1e950b6f5c691c4d2a29bf949bcd (diff) | |
| download | rust-7c84ba112429eb9bc0b99a6fe32a453c920a764c.tar.gz rust-7c84ba112429eb9bc0b99a6fe32a453c920a764c.zip | |
use char instead of &str for single char patterns
Diffstat (limited to 'src/librustc_codegen_llvm')
| -rw-r--r-- | src/librustc_codegen_llvm/back/lto.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/back/lto.rs b/src/librustc_codegen_llvm/back/lto.rs index d7297ed4176..6b136aeb8d9 100644 --- a/src/librustc_codegen_llvm/back/lto.rs +++ b/src/librustc_codegen_llvm/back/lto.rs @@ -917,7 +917,7 @@ impl ThinLTOImports { if line.is_empty() { let importing_module = current_module.take().expect("Importing module not set"); imports.insert(importing_module, mem::replace(&mut current_imports, vec![])); - } else if line.starts_with(" ") { + } else if line.starts_with(' ') { // Space marks an imported module assert_ne!(current_module, None); current_imports.push(line.trim().to_string()); |
