Fix warnings related to panic and assert (#8272)

We were using the wrong syntax and that will be dropped with Rust 2021.
The compiler already starts to hint the wrong syntax with warnings. So,
we fix this here.
This commit is contained in:
Bastian Köcher authored and GitHub committed 2021-03-05 10:56:33 +01:00
1 parent 0c72a8767b
commit d0530d0f2a
6 files changed
+27 -16

No files matched your search

+6 -2
View File
@@ -427,7 +427,9 @@ mod tests {
let output = String::from_utf8(output.stderr).unwrap();
assert!(
re.is_match(output.trim()),
format!("Expected:\n{}\nGot:\n{}", re, output),
"Expected:\n{}\nGot:\n{}",
re,
output,
);
}
@@ -475,7 +477,9 @@ mod tests {
let output = String::from_utf8(output.stderr).unwrap();
assert!(
re.is_match(output.trim()),
format!("Expected:\n{}\nGot:\n{}", re, output),
"Expected:\n{}\nGot:\n{}",
re,
output,
);
}