Skip to content

Commit

Permalink
Resolve latest clippy and a couple no longer needed fmt notes
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Jan 23, 2024
1 parent 508f7eb commit 21262d4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions common/request/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Incoming>, pub(crate) &'a Client);
impl<'a> Response<'a> {
Expand Down
1 change: 0 additions & 1 deletion crypto/dkg/src/tests/frost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<C> = EncryptedMessage<C, SecretShare<<C as Ciphersuite>::F>>;
type FrostSecretShares<C> = HashMap<Participant, FrostEncryptedMessage<C>>;

Expand Down
5 changes: 1 addition & 4 deletions substrate/primitives/src/balance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))]
Expand Down

0 comments on commit 21262d4

Please sign in to comment.