Skip to content

Commit d130bf6

Browse files
committed
Also print rustfmt's stderr for expectations
1 parent d23c917 commit d130bf6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/tests.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ fn compare_generated_header(
166166
}
167167
Err(()) => ("<error generating bindings>".to_string(), "".to_string()),
168168
};
169+
println!("{}", rustfmt_stderr);
169170

170171
let mut expected = String::new();
171172
{
@@ -174,7 +175,8 @@ fn compare_generated_header(
174175
}
175176
}
176177

177-
let (expected, _) = rustfmt(expected);
178+
let (expected, rustfmt_stderr) = rustfmt(expected);
179+
println!("{}", rustfmt_stderr);
178180

179181
if actual == expected {
180182
if !actual.is_empty() {

0 commit comments

Comments
 (0)