Skip to content

Commit

Permalink
Fix more clippy warnings from new rust update
Browse files Browse the repository at this point in the history
  • Loading branch information
inetic authored and madadam committed Dec 11, 2024
1 parent e567845 commit b33503f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions lib/src/network/runtime_id.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//! These structures are used to generate ephemeral id that uniquely identifies a replica. Changes
//! every time the replica is restarted. The cryptography involved is to ensure one replica can't
//! claim to be another one.
use crate::crypto::{
sign::{Keypair, PublicKey, Signature},
Digest, Hashable,
Expand All @@ -7,10 +11,6 @@ use serde::{Deserialize, Serialize};
use std::io;
use tokio::io::{AsyncRead, AsyncReadExt, AsyncWrite, AsyncWriteExt};

/// These structures are used to generate ephemeral id that uniquely identifies a replica. Changes
/// every time the replica is restarted. The cryptography involved is to ensure one replica can't
/// claim to be another one.
pub struct SecretRuntimeId {
keypair: Keypair,
}
Expand Down

0 comments on commit b33503f

Please sign in to comment.