Skip to content

Commit adf31b4

Browse files
committed
Clippy
1 parent 2af657a commit adf31b4

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/lib.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@ impl ProxyServer {
3939
.with_single_cert(cert_chain.clone(), key)
4040
.expect("Failed to create rustls server config");
4141

42-
let server =
43-
Self::new_with_tls_config(cert_chain, server_config.into(), local, target).await;
44-
45-
server
42+
Self::new_with_tls_config(cert_chain, server_config.into(), local, target).await
4643
}
4744

4845
/// Start with preconfigured TLS
@@ -133,10 +130,7 @@ impl ProxyClient {
133130
.with_root_certificates(root_store)
134131
.with_no_client_auth();
135132

136-
let client =
137-
Self::new_with_tls_config(client_config.into(), address, server_address, server_name)
138-
.await;
139-
client
133+
Self::new_with_tls_config(client_config.into(), address, server_address, server_name).await
140134
}
141135

142136
pub async fn new_with_tls_config(
@@ -151,7 +145,7 @@ impl ProxyClient {
151145
Self {
152146
connector,
153147
listener,
154-
target: target.into(),
148+
target,
155149
target_name,
156150
attestation_platform: MockAttestation,
157151
}

0 commit comments

Comments
 (0)