diff --git a/src/connection/handshake/tracker.rs b/src/connection/handshake/tracker.rs index 63ee31d..aaa1163 100644 --- a/src/connection/handshake/tracker.rs +++ b/src/connection/handshake/tracker.rs @@ -133,8 +133,6 @@ pub(crate) struct AuthNeededInfo { pub handshake: Handshake, /// hkdf generated from the handshake pub hkdf: Hkdf, - /// cipher to be used in both directions - pub cipher: CipherKind, } /// Client information needed to fully establish the conenction @@ -336,12 +334,9 @@ impl HandshakeTracker { } } - let cipher = req.cipher; - return Ok(HandshakeAction::AuthNeeded(AuthNeededInfo { handshake, hkdf, - cipher, })); } DirSync::Resp(resp) => { diff --git a/src/dnssec/record.rs b/src/dnssec/record.rs index 9426b3e..a995cea 100644 --- a/src/dnssec/record.rs +++ b/src/dnssec/record.rs @@ -530,7 +530,7 @@ impl Record { bytes_parsed = bytes_parsed + pubkey_length; continue; } - Err(e) => { + Err(_) => { return Err(Error::UnsupportedData(bytes_parsed)); } }; diff --git a/src/enc/hkdf.rs b/src/enc/hkdf.rs index d81276f..e52e236 100644 --- a/src/enc/hkdf.rs +++ b/src/enc/hkdf.rs @@ -125,7 +125,7 @@ impl HkdfSha3 { let mut out: [u8; 32] = [0; 32]; #[allow(unsafe_code)] unsafe { - self.inner.hkdf.expand(context, &mut out); + let _ = self.inner.hkdf.expand(context, &mut out); } out.into() } diff --git a/src/enc/mod.rs b/src/enc/mod.rs index 3aeea7b..663c72d 100644 --- a/src/enc/mod.rs +++ b/src/enc/mod.rs @@ -27,7 +27,7 @@ impl Random { } /// Fill a buffer with randomness pub fn fill(&self, out: &mut [u8]) { - self.rnd.fill(out); + let _ = self.rnd.fill(out); } /// return the underlying ring SystemRandom pub fn ring_rnd(&self) -> &::ring::rand::SystemRandom { diff --git a/src/inner/worker.rs b/src/inner/worker.rs index f352fc0..083a9ac 100644 --- a/src/inner/worker.rs +++ b/src/inner/worker.rs @@ -52,9 +52,6 @@ pub(crate) enum Work { DropHandshake(KeyID), Recv(RawUdp), } -pub(crate) enum WorkAnswer { - UNUSED, -} /// Actual worker implementation. #[allow(missing_debug_implementations)] @@ -653,6 +650,6 @@ impl Worker { return; } }; - let res = src_sock.send_to(&data, client.0).await; + let _res = src_sock.send_to(&data, client.0).await; } } diff --git a/src/lib.rs b/src/lib.rs index 697fff8..fbca09a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -449,7 +449,7 @@ impl Fenrir { .unwrap(); // and tell that thread to connect somewhere - let (send, mut recv) = ::tokio::sync::oneshot::channel(); + let (send, recv) = ::tokio::sync::oneshot::channel(); let _ = self._thread_work[thread_idx] .send(Work::Connect(ConnectInfo { answer: send,