fix warnings, allow deadcode for now

This commit is contained in:
sinuio
2022-06-14 22:37:54 -07:00
parent a490674b81
commit 8bf4e15dde
3 changed files with 4 additions and 4 deletions

View File

@@ -831,7 +831,7 @@ impl State<ClientConnectionData> for ExpectServerDone {
let mut transcript = st.transcript;
emit_clientkx(&mut transcript, cx.common, &key_share).await;
// nb. EMS handshake hash only runs up to ClientKeyExchange.
let ems_seed = st.using_ems.then(|| transcript.get_current_hash());
let _ems_seed = st.using_ems.then(|| transcript.get_current_hash());
// 5c.
if let Some(ClientAuthDetails::Verify { signer, .. }) = &st.client_auth {

View File

@@ -54,7 +54,7 @@ pub(super) async fn handle_server_hello(
config: Arc<ClientConfig>,
cx: &mut ClientContext<'_>,
server_hello: &ServerHelloPayload,
mut resuming_session: Option<persist::Tls13ClientSessionValue>,
resuming_session: Option<persist::Tls13ClientSessionValue>,
server_name: ServerName,
randoms: ConnectionRandoms,
suite: &'static Tls13CipherSuite,

View File

@@ -252,8 +252,8 @@
//! buffers. Will do nothing on non-Nightly releases.
// Require docs for public APIs, deny unsafe code, etc.
#![forbid(unsafe_code, unused_must_use)]
#![allow(dead_code)]
#![forbid(unsafe_code)]
#![allow(dead_code, unused_imports)]
#![cfg_attr(not(read_buf), forbid(unstable_features))]
#![deny(
clippy::clone_on_ref_ptr,