]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_llvm/build.rs
Rollup merge of #69561 - JohnTitor:clean-up-unstable-book, r=Mark-Simulacrum
[rust.git] / src / librustc_llvm / build.rs
index 405ce0307cd822f7fff95ddab38f192f12c8eff2..9b4f03b3fb64b975e4513b2816e2ef0375103113 100644 (file)
@@ -178,7 +178,7 @@ fn main() {
     for lib in output(&mut cmd).split_whitespace() {
         let name = if lib.starts_with("-l") {
             &lib[2..]
-        } else if lib.starts_with("-") {
+        } else if lib.starts_with('-') {
             &lib[1..]
         } else if Path::new(lib).exists() {
             // On MSVC llvm-config will print the full name to libraries, but