Fix indentation of inserted use statements

This commit is contained in:
Florian Diebold 2020-10-23 17:18:41 +02:00 committed by Florian Diebold
parent 4105378dc7
commit bc65200105
2 changed files with 135 additions and 37 deletions

View file

@ -43,12 +43,12 @@ macro_rules! assert_eq_text {
let right = $right;
if left != right {
if left.trim() == right.trim() {
eprintln!("Left:\n{:?}\n\nRight:\n{:?}\n\nWhitespace difference\n", left, right);
std::eprintln!("Left:\n{:?}\n\nRight:\n{:?}\n\nWhitespace difference\n", left, right);
} else {
let changeset = $crate::__Changeset::new(left, right, "\n");
eprintln!("Left:\n{}\n\nRight:\n{}\n\nDiff:\n{}\n", left, right, changeset);
std::eprintln!("Left:\n{}\n\nRight:\n{}\n\nDiff:\n{}\n", left, right, changeset);
}
eprintln!($($tt)*);
std::eprintln!($($tt)*);
panic!("text differs");
}
}};