Remove invalid redundant clone warning (#996)

This commit is contained in:
James Wilson
2023-06-02 11:27:04 +01:00
committed by GitHub
parent e40a8629e2
commit 27d5868be6
+2
View File
@@ -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()]);