From 21262d41e6e0f203ba1dbcf3f17d28682e23564c Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Mon, 22 Jan 2024 22:13:37 -0500 Subject: [PATCH] Resolve latest clippy and a couple no longer needed fmt notes --- common/request/src/response.rs | 1 + crypto/dkg/src/tests/frost.rs | 1 - substrate/primitives/src/balance.rs | 5 +---- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/common/request/src/response.rs b/common/request/src/response.rs index 899d538cd..78295d377 100644 --- a/common/request/src/response.rs +++ b/common/request/src/response.rs @@ -8,6 +8,7 @@ use http_body_util::BodyExt; use crate::{Client, Error}; // Borrows the client so its async task lives as long as this response exists. +#[allow(dead_code)] #[derive(Debug)] pub struct Response<'a>(pub(crate) hyper::Response, pub(crate) &'a Client); impl<'a> Response<'a> { diff --git a/crypto/dkg/src/tests/frost.rs b/crypto/dkg/src/tests/frost.rs index 01af35626..e54f60be4 100644 --- a/crypto/dkg/src/tests/frost.rs +++ b/crypto/dkg/src/tests/frost.rs @@ -11,7 +11,6 @@ use crate::{ tests::{THRESHOLD, PARTICIPANTS, clone_without}, }; -// Needed so rustfmt doesn't fail to format on line length issues type FrostEncryptedMessage = EncryptedMessage::F>>; type FrostSecretShares = HashMap>; diff --git a/substrate/primitives/src/balance.rs b/substrate/primitives/src/balance.rs index 8a0a7c9de..62182d43f 100644 --- a/substrate/primitives/src/balance.rs +++ b/substrate/primitives/src/balance.rs @@ -14,10 +14,7 @@ use scale_info::TypeInfo; use crate::{Coin, Amount}; /// The type used for balances (a Coin and Balance). -#[rustfmt::skip] -#[derive( - Clone, Copy, PartialEq, Eq, Debug, Encode, Decode, MaxEncodedLen, TypeInfo, -)] +#[derive(Clone, Copy, PartialEq, Eq, Debug, Encode, Decode, MaxEncodedLen, TypeInfo)] #[cfg_attr(feature = "std", derive(Zeroize))] #[cfg_attr(feature = "borsh", derive(BorshSerialize, BorshDeserialize))] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]