# 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`]
[package]
name = "clippy"
-version = "0.0.188"
+version = "0.0.189"
authors = [
"Manish Goregaokar <manishsmail@gmail.com>",
"Andre Bogus <bogusandre@gmail.com>",
[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"
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
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);