From 77e50ecd42b34e25074da3e47e8964e4db69b47f Mon Sep 17 00:00:00 2001 From: aimeedeer Date: Fri, 4 Nov 2022 12:02:00 -0600 Subject: [PATCH] fix clippy complaints --- src/realtps_import/src/clients/substrate.rs | 4 ++-- src/realtps_import/src/import.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/realtps_import/src/clients/substrate.rs b/src/realtps_import/src/clients/substrate.rs index 0e7f9a4..0ef3edd 100644 --- a/src/realtps_import/src/clients/substrate.rs +++ b/src/realtps_import/src/clients/substrate.rs @@ -147,8 +147,8 @@ fn storage_key(pallet: &'static str, storage: &'static str) -> Vec { let storage = sp_core::twox_128(storage.as_bytes()); let mut bytes = vec![]; - bytes.extend(&pallet); - bytes.extend(&storage); + bytes.extend(pallet); + bytes.extend(storage); bytes } diff --git a/src/realtps_import/src/import.rs b/src/realtps_import/src/import.rs index aaa8070..9bfdc14 100644 --- a/src/realtps_import/src/import.rs +++ b/src/realtps_import/src/import.rs @@ -1,3 +1,4 @@ +#![allow(clippy::all)] use crate::client::Client; use crate::delay; use crate::helpers::*;