Fix several warnings and remove some forbid(warnings) (#2874)

This commit is contained in:
Bastian Köcher
2019-06-15 10:30:04 +02:00
committed by Gavin Wood
parent ecf25c9289
commit e09045bde2
6 changed files with 13 additions and 19 deletions
+4 -4
View File
@@ -1272,7 +1272,7 @@ fn on_free_balance_zero_stash_removes_validator() {
assert!(<Payee<Test>>::exists(&11));
// Reduce free_balance of controller to 0
Balances::slash(&10, u64::max_value());
let _ = Balances::slash(&10, u64::max_value());
// Check the balance of the stash account has not been touched
assert_eq!(Balances::free_balance(&11), 256000);
@@ -1287,7 +1287,7 @@ fn on_free_balance_zero_stash_removes_validator() {
assert!(<Payee<Test>>::exists(&11));
// Reduce free_balance of stash to 0
Balances::slash(&11, u64::max_value());
let _ = Balances::slash(&11, u64::max_value());
// Check total balance of stash
assert_eq!(Balances::total_balance(&11), 0);
@@ -1328,7 +1328,7 @@ fn on_free_balance_zero_stash_removes_nominator() {
assert!(<Payee<Test>>::exists(&11));
// Reduce free_balance of controller to 0
Balances::slash(&10, u64::max_value());
let _ = Balances::slash(&10, u64::max_value());
// Check total balance of account 10
assert_eq!(Balances::total_balance(&10), 0);
@@ -1344,7 +1344,7 @@ fn on_free_balance_zero_stash_removes_nominator() {
assert!(<Payee<Test>>::exists(&11));
// Reduce free_balance of stash to 0
Balances::slash(&11, u64::max_value());
let _ = Balances::slash(&11, u64::max_value());
// Check total balance of stash
assert_eq!(Balances::total_balance(&11), 0);