mirror of
https://github.com/tlsnotary/tlsn.git
synced 2026-01-08 21:08:04 -05:00
Apply clippy fix.
This commit is contained in:
@@ -42,7 +42,7 @@ async fn alpn_test_error(
|
||||
|
||||
for version in tls_client::ALL_VERSIONS {
|
||||
let mut client_config = make_client_config_with_versions(KeyType::Rsa, &[version]);
|
||||
client_config.alpn_protocols = client_protos.clone();
|
||||
client_config.alpn_protocols.clone_from(&client_protos);
|
||||
|
||||
let (mut client, mut server) =
|
||||
make_pair_for_arc_configs(&Arc::new(client_config), &server_config).await;
|
||||
@@ -890,8 +890,7 @@ async fn client_error_is_sticky() {
|
||||
|
||||
#[tokio::test]
|
||||
async fn client_is_send() {
|
||||
let (client, _) = make_pair(KeyType::Rsa).await;
|
||||
&client as &dyn Send;
|
||||
let (_client, _) = make_pair(KeyType::Rsa).await;
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
@@ -1374,6 +1373,7 @@ async fn server_streamowned_read() {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
struct FailsWrites {
|
||||
errkind: io::ErrorKind,
|
||||
after: usize,
|
||||
|
||||
@@ -50,7 +50,7 @@ fn serialized(f: impl FnOnce()) {
|
||||
});
|
||||
let mutex = unsafe { MUTEX.as_mut() };
|
||||
|
||||
let _guard = mutex.unwrap().lock().unwrap();
|
||||
let _guard = mutex.unwrap().get_mut().unwrap();
|
||||
|
||||
// XXX: NOT thread safe.
|
||||
env::set_var("SSLKEYLOGFILE", "./sslkeylogfile.txt");
|
||||
|
||||
@@ -21,6 +21,7 @@ use crate::{MpcTlsCommonConfig, TlsRole};
|
||||
|
||||
/// Builds the components for MPC-TLS.
|
||||
// TODO: Better dependency injection!!
|
||||
#[allow(clippy::too_many_arguments, clippy::type_complexity)]
|
||||
pub fn build_components<Ctx, T, OTS, OTR>(
|
||||
role: TlsRole,
|
||||
config: &MpcTlsCommonConfig,
|
||||
|
||||
Reference in New Issue
Block a user