declone and close the door (#12035)

* declone and close the door

* cargo fmt

* remove brackets
This commit is contained in:
Squirrel
2022-08-15 20:38:36 +01:00
committed by GitHub
parent 9c2a2495fe
commit a68a80fbae
72 changed files with 344 additions and 512 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ fn blocks() -> ((Vec<u8>, Hash), (Vec<u8>, Hash)) {
let block2 = construct_block(
&mut t,
2,
block1.1.clone(),
block1.1,
vec![
CheckedExtrinsic {
signed: None,
+1 -1
View File
@@ -73,7 +73,7 @@ fn fee_multiplier_increases_and_decreases_on_big_weight() {
let block2 = construct_block(
&mut tt,
2,
block1.1.clone(),
block1.1,
vec![
CheckedExtrinsic {
signed: None,
+6 -6
View File
@@ -197,12 +197,12 @@ mod multiplier_tests {
fn truth_value_update_poc_works() {
let fm = Multiplier::saturating_from_rational(1, 2);
let test_set = vec![
(0, fm.clone()),
(100, fm.clone()),
(1000, fm.clone()),
(target(), fm.clone()),
(max_normal() / 2, fm.clone()),
(max_normal(), fm.clone()),
(0, fm),
(100, fm),
(1000, fm),
(target(), fm),
(max_normal() / 2, fm),
(max_normal(), fm),
];
test_set.into_iter().for_each(|(w, fm)| {
run_with_system_weight(w, || {