mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-12 08:45:42 +00:00
Fixed clippy warnings (#537)
* fixed clippy warnings * Revert "Actually use pinned nightly version when building runtimes (#465)" This reverts commit dedddb6b0f22260e00053c28873a0cb1fbea22e2. * Revert "Pin Rust Nightly Version (#420)" This reverts commit 8902ac2030cf7ef48ec512463424f134a3b38804. * fix after revert * another fix after revert * more clippy fixes
This commit is contained in:
committed by
Bastian Köcher
parent
4f661d2fe0
commit
c20b4c868f
@@ -325,8 +325,10 @@ pub(crate) mod tests {
|
||||
// when contract is active, but bloom has no required bits set
|
||||
let config = ValidatorsConfiguration::Single(ValidatorsSource::Contract(Default::default(), Vec::new()));
|
||||
let validators = Validators::new(&config);
|
||||
let mut header = AuraHeader::default();
|
||||
header.number = u64::max_value();
|
||||
let mut header = AuraHeader {
|
||||
number: u64::max_value(),
|
||||
..Default::default()
|
||||
};
|
||||
assert!(!validators.maybe_signals_validators_change(&header));
|
||||
|
||||
// when contract is active and bloom has required bits set
|
||||
@@ -347,10 +349,12 @@ pub(crate) mod tests {
|
||||
(200, ValidatorsSource::Contract([3; 20].into(), vec![[3; 20].into()])),
|
||||
]);
|
||||
let validators = Validators::new(&config);
|
||||
let mut header = AuraHeader::default();
|
||||
let mut header = AuraHeader {
|
||||
number: 100,
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
// when we're at the block that switches to list source
|
||||
header.number = 100;
|
||||
assert_eq!(
|
||||
validators.extract_validators_change(&header, None),
|
||||
Ok((None, Some(vec![[2; 20].into()]))),
|
||||
|
||||
Reference in New Issue
Block a user