Skip to content

Commit 09924d8

Browse files
committed
run rustfmt
1 parent aeff5ac commit 09924d8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ pub fn main() {
179179

180180
let manifest_path_arg = std::env::args().skip(2).find(|val| val.starts_with("--manifest-path="));
181181

182-
let mut metadata = if let Ok(metadata) = cargo_metadata::metadata(manifest_path_arg.as_ref().map(AsRef::as_ref)) {
182+
let mut metadata = if let Ok(metadata) = cargo_metadata::metadata(manifest_path_arg.as_ref()
183+
.map(AsRef::as_ref)) {
183184
metadata
184185
} else {
185186
let _ = io::stderr().write_fmt(format_args!("error: Could not obtain cargo metadata."));

tests/used_underscore_binding_macro.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#![feature(plugin)]
22
#![plugin(clippy)]
33

4-
#[macro_use] extern crate serde_derive;
4+
#[macro_use]
5+
extern crate serde_derive;
56

67
/// Test that we do not lint for unused underscores in a `MacroAttribute` expansion
78
#[deny(used_underscore_binding)]

0 commit comments

Comments
 (0)