Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
OverOrion committed Nov 8, 2022
1 parent a3bc4cb commit 1bc262b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app-libs/stf/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub enum StfError {
StorageHashMismatch,
InvalidStorageDiff,
}

#[allow(clippy::large_enum_variant)]
#[derive(Clone)]
pub enum KeyPair {
Sr25519(sr25519::Pair),
Expand Down
2 changes: 1 addition & 1 deletion core-primitives/stf-executor/src/mocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl StfEnclaveSigning for StfEnclaveSignerMock {
trusted_call: &TrustedCall,
shard: &ShardIdentifier,
) -> Result<TrustedCallSigned> {
Ok(trusted_call.sign(&KeyPair::Ed25519(self.signer.clone()), 1, &self.mr_enclave, shard))
Ok(trusted_call.sign(&KeyPair::Ed25519(self.signer), 1, &self.mr_enclave, shard))
}
}

Expand Down
2 changes: 1 addition & 1 deletion service/src/enclave/tls_ra.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use itp_types::ShardIdentifier;
use log::*;
use sgx_types::*;
use std::{
net::{self, TcpListener},
net::{TcpListener, TcpStream},
os::unix::io::AsRawFd,
};

Expand Down
2 changes: 1 addition & 1 deletion sidechain/test/src/sidechain_block_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl SidechainBlockBuilder {
}

pub fn build_signed(self) -> SignedBlock {
let signer = self.signer.clone();
let signer = self.signer;
self.build().sign_block(&signer)
}
}
Expand Down

0 comments on commit 1bc262b

Please sign in to comment.