Mass replace ,); pattern (#3580)

This is an artifact left by rustfmt which is not dare to remove the
comma being conservative.
This commit is contained in:
Sergei Shulepov
2021-08-05 19:53:17 +02:00
committed by GitHub
parent 00d6fc5af0
commit 68c03f66f3
46 changed files with 136 additions and 136 deletions
@@ -336,7 +336,7 @@ mod tests {
Some(vec![validators_change_receipt(latest_block_id.hash)]),
)
.unwrap();
assert_eq!(finalized_blocks, vec![(parent_id, Some(100))],);
assert_eq!(finalized_blocks, vec![(parent_id, Some(100))]);
assert!(storage.header(&ctx.genesis.compute_hash()).is_none());
latest_block_id = rolling_last_block_id;
@@ -362,7 +362,7 @@ mod tests {
None,
)
.unwrap();
assert_eq!(finalized_blocks, vec![],);
assert_eq!(finalized_blocks, vec![]);
latest_block_id = rolling_last_block_id;
step += 3;
}
+1 -1
View File
@@ -1415,7 +1415,7 @@ pub(crate) mod tests {
example_header().compute_hash(),
1,
&[],
),);
));
});
}
@@ -359,7 +359,7 @@ pub(crate) mod tests {
// when we're inside list range
header.number = 150;
assert_eq!(validators.extract_validators_change(&header, None), Ok((None, None)),);
assert_eq!(validators.extract_validators_change(&header, None), Ok((None, None)));
// when we're at the block that switches to contract source
header.number = 200;
@@ -459,7 +459,7 @@ pub(crate) mod tests {
#[test]
fn finalize_validators_change_does_not_finalize_when_changes_are_not_scheduled() {
assert_eq!(try_finalize_with_scheduled_change(None), None,);
assert_eq!(try_finalize_with_scheduled_change(None), None);
}
#[test]
@@ -468,6 +468,6 @@ pub(crate) mod tests {
number: 5,
..Default::default()
};
assert_eq!(try_finalize_with_scheduled_change(Some(id5)), None,);
assert_eq!(try_finalize_with_scheduled_change(Some(id5)), None);
}
}