mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 16:31:03 +00:00
Fix new nightly clippy issues (#1604)
* clipy * revert some fixes that newest clippy reports as issues, but older does not
This commit is contained in:
committed by
Bastian Köcher
parent
6c26aae035
commit
9e1847d12a
@@ -414,7 +414,7 @@ mod tests {
|
||||
.len();
|
||||
let difference = (expected_size.unwrap() as f64 - actual_size as f64).abs();
|
||||
assert!(
|
||||
difference / (std::cmp::min(actual_size, expected_size.unwrap() as usize) as f64) < 0.1,
|
||||
difference / (std::cmp::min(actual_size, expected_size.unwrap()) as f64) < 0.1,
|
||||
"Too large difference between actual ({}) and expected ({:?}) inbound lane data size. Test case: {}+{}",
|
||||
actual_size,
|
||||
expected_size,
|
||||
|
||||
@@ -112,7 +112,7 @@ pub fn make_justification_for_header<H: HeaderT>(
|
||||
};
|
||||
|
||||
// Note: Adding 1 to account for the target header
|
||||
let chain = generate_chain(i as u32, depth + 1, &header);
|
||||
let chain = generate_chain(i, depth + 1, &header);
|
||||
|
||||
// We don't include our finality target header in the vote ancestries
|
||||
for child in &chain[1..] {
|
||||
|
||||
Reference in New Issue
Block a user