mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-15 15:17:07 +00:00
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:
1 parent
0c72a8767b
commit
d0530d0f2a
6 files changed
+27
-16
No files matched your search
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user