Skip to content

Commit

Permalink
Format with rustfmt 2019-09-08
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 30, 2019
1 parent 59c0abf commit 60f442e
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,20 +200,23 @@ impl Test {
let output = cargo::build_test(project, name)?;
let success = output.status.success();
let stdout = output.stdout;
let stderr = normalize::diagnostics(output.stderr, &[
Variable {
name: "$CRATE",
value: name.0.clone(),
},
Variable {
name: "$DIR",
value: project.source_dir.to_string_lossy().into_owned(),
},
Variable {
name: "WORKSPACE",
value: project.workspace.to_string_lossy().into_owned(),
},
]);
let stderr = normalize::diagnostics(
output.stderr,
&[
Variable {
name: "$CRATE",
value: name.0.clone(),
},
Variable {
name: "$DIR",
value: project.source_dir.to_string_lossy().into_owned(),
},
Variable {
name: "WORKSPACE",
value: project.workspace.to_string_lossy().into_owned(),
},
],
);

let check = match self.expected {
Expected::Pass => Test::check_pass,
Expand Down

0 comments on commit 60f442e

Please sign in to comment.