From 4a70a46d2ddd567c71b5d3042d1ff8efea1909d3 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Tue, 24 Jan 2017 18:06:17 +0100 Subject: [PATCH] run rustfmt --- src/main.rs | 3 ++- tests/used_underscore_binding_macro.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1be98cbeb92..7a744356eb4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -179,7 +179,8 @@ pub fn main() { let manifest_path_arg = std::env::args().skip(2).find(|val| val.starts_with("--manifest-path=")); - let mut metadata = if let Ok(metadata) = cargo_metadata::metadata(manifest_path_arg.as_ref().map(AsRef::as_ref)) { + let mut metadata = if let Ok(metadata) = cargo_metadata::metadata(manifest_path_arg.as_ref() + .map(AsRef::as_ref)) { metadata } else { let _ = io::stderr().write_fmt(format_args!("error: Could not obtain cargo metadata.")); diff --git a/tests/used_underscore_binding_macro.rs b/tests/used_underscore_binding_macro.rs index c7da8e4f9c1..90cb106dea6 100644 --- a/tests/used_underscore_binding_macro.rs +++ b/tests/used_underscore_binding_macro.rs @@ -1,7 +1,8 @@ #![feature(plugin)] #![plugin(clippy)] -#[macro_use] extern crate serde_derive; +#[macro_use] +extern crate serde_derive; /// Test that we do not lint for unused underscores in a `MacroAttribute` expansion #[deny(used_underscore_binding)]