Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
miraclx committed Nov 13, 2024
1 parent c2e2b6c commit 025ecd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/node/src/sync/key.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use calimero_crypto::SharedKey;
use calimero_network::stream::Stream;
use calimero_primitives::context::Context;
use calimero_primitives::identity::{PrivateKey, PublicKey};
use calimero_primitives::identity::PublicKey;
use eyre::{bail, OptionExt};
use rand::seq::IteratorRandom;
use rand::thread_rng;
Expand Down
2 changes: 1 addition & 1 deletion crates/node/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use calimero_primitives::blobs::BlobId;
use calimero_primitives::context::ContextId;
use calimero_primitives::hash::Hash;
use calimero_primitives::identity::{PrivateKey, PublicKey};
use serde::Deserialize;

#[derive(Debug, BorshSerialize, BorshDeserialize)]
#[non_exhaustive]
Expand Down Expand Up @@ -51,6 +50,7 @@ pub enum InitPayload {
}

#[derive(Debug, BorshSerialize, BorshDeserialize)]
#[expect(variant_size_differences, reason = "'tis fine")]
pub enum MessagePayload<'a> {
StateSync { artifact: Cow<'a, [u8]> },
BlobShare { chunk: Cow<'a, [u8]> },
Expand Down

0 comments on commit 025ecd3

Please sign in to comment.