Skip to content

Commit

Permalink
Remove invalid redundant clone warning (#996)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdw authored Jun 2, 2023
1 parent e40a862 commit 27d5868
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metadata/src/utils/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,8 @@ mod tests {
}

#[test]
// Redundant clone clippy warning is a lie; https://github.com/rust-lang/rust-clippy/issues/10870
#[allow(clippy::redundant_clone)]
fn pallet_hash_correctness() {
let compare_pallets_hash = |lhs: &v15::PalletMetadata, rhs: &v15::PalletMetadata| {
let metadata = pallets_to_metadata(vec![lhs.clone()]);
Expand Down

0 comments on commit 27d5868

Please sign in to comment.