]> git.lizzy.rs Git - rust.git/commitdiff
Version bump
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Mon, 19 Mar 2018 08:26:05 +0000 (09:26 +0100)
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Mon, 19 Mar 2018 08:26:05 +0000 (09:26 +0100)
CHANGELOG.md
Cargo.toml
clippy_lints/Cargo.toml
src/main.rs

index 970b458e2a8b0cbdc89f987e18f1d0fc25ce451e..452a08f6ed47d67d17213af8a85e452e47ba737c 100644 (file)
@@ -1,6 +1,9 @@
 # Change Log
 All notable changes to this project will be documented in this file.
 
+## 0.0.189
+* Rustup to *rustc 1.26.0-nightly (5508b2714 2018-03-18)*
+
 ## 0.0.188
 * Rustup to *rustc 1.26.0-nightly (392645394 2018-03-15)*
 * New lint: [`while_immutable_condition`]
index 09eb34bf5fdb0adce175b8c38c98bc3ae56d2579..65714e607469155b286d798d4be52dec540987fb 100644 (file)
@@ -1,6 +1,6 @@
 [package]
 name = "clippy"
-version = "0.0.188"
+version = "0.0.189"
 authors = [
        "Manish Goregaokar <manishsmail@gmail.com>",
        "Andre Bogus <bogusandre@gmail.com>",
@@ -37,7 +37,7 @@ path = "src/driver.rs"
 
 [dependencies]
 # begin automatic update
-clippy_lints = { version = "0.0.188", path = "clippy_lints" }
+clippy_lints = { version = "0.0.189", path = "clippy_lints" }
 # end automatic update
 cargo_metadata = "0.5"
 regex = "0.2"
index 38b4a0ea18c289049ce3cb585468e2e277a0fda2..8a155957ed2662d5bf2e93ca5348695208c62ce4 100644 (file)
@@ -1,7 +1,7 @@
 [package]
 name = "clippy_lints"
 # begin automatic update
-version = "0.0.188"
+version = "0.0.189"
 # end automatic update
 authors = [
        "Manish Goregaokar <manishsmail@gmail.com>",
index 95e1fc0c28c0c05997da9ae3bf3737732e826d7e..81933d5769a67fa21b61085733a23d623898308c 100644 (file)
@@ -59,10 +59,18 @@ pub fn main() {
         return;
     }
 
-    let manifest_path_arg = std::env::args()
+    let mut manifest_path_arg = std::env::args()
         .skip(2)
-        .find(|val| val.starts_with("--manifest-path="))
-        .map(|val| val["--manifest-path=".len()..].to_owned());
+        .skip_while(|val| !val.starts_with("--manifest-path"));
+    let manifest_path_arg = manifest_path_arg.next().and_then(|val| {
+        if val == "--manifest-path" {
+            manifest_path_arg.next()
+        } else if val.starts_with("--manifest-path=") {
+            Some(val["--manifest-path=".len()..].to_owned())
+        } else {
+            None
+        }
+    });
 
     let mut metadata = if let Ok(metadata) = cargo_metadata::metadata(manifest_path_arg.as_ref().map(AsRef::as_ref)) {
         metadata
@@ -140,7 +148,7 @@ pub fn main() {
 
         for target in package.targets {
             let args = std::env::args()
-                .skip(2)
+                .skip(1)
                 .filter(|a| a != "--all" && !a.starts_with("--manifest-path="));
 
             let args = std::iter::once(format!("--manifest-path={}", manifest_path)).chain(args);