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
2021-03-05 10:56:33 +01:00
committed by GitHub
parent 0c72a8767b
commit d0530d0f2a
6 changed files with 27 additions and 16 deletions
+1 -1
View File
@@ -236,7 +236,7 @@ fn set_balance_proposal_hash_and_note(value: u64) -> H256 {
match Democracy::note_preimage(Origin::signed(6), p) {
Ok(_) => (),
Err(x) if x == Error::<Test>::DuplicatePreimage.into() => (),
Err(x) => panic!(x),
Err(x) => panic!("{:?}", x),
}
h
}