mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 21:01:02 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user