run rustfmt

This commit is contained in:
Oliver Schneider 2017-01-24 18:06:17 +01:00
parent 26e8558d8a
commit 4a70a46d2d
No known key found for this signature in database
GPG Key ID: A69F8D225B3AD7D9
2 changed files with 4 additions and 2 deletions

View File

@ -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."));

View File

@ -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)]