From b33503f62f5968c3f2d8ea5eece200926d10cd09 Mon Sep 17 00:00:00 2001 From: Peter Jankuliak Date: Tue, 10 Dec 2024 16:04:12 +0100 Subject: [PATCH] Fix more clippy warnings from new rust update --- Cargo.lock | 5 +++-- lib/src/network/runtime_id.rs | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c2cda5bc7..b01dcbf21 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2935,6 +2935,7 @@ dependencies = [ "pin-project-lite", "proptest", "quinn", + "quinn-udp", "rcgen", "similar-asserts", "slab", @@ -3396,9 +3397,9 @@ dependencies = [ [[package]] name = "quinn-udp" -version = "0.5.7" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d5a626c6807713b15cac82a6acaccd6043c9a5408c24baae07611fec3f243da" +checksum = "52cd4b1eff68bf27940dd39811292c49e007f4d0b4c357358dc9b0197be6b527" dependencies = [ "cfg_aliases", "libc", diff --git a/lib/src/network/runtime_id.rs b/lib/src/network/runtime_id.rs index 5c00a8cfe..6ad4ca322 100644 --- a/lib/src/network/runtime_id.rs +++ b/lib/src/network/runtime_id.rs @@ -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, @@ -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, }