Skip to content

Commit 9b1d077

Browse files
committed
Fix fmt
Signed-off-by: Max Lambrecht <[email protected]>
1 parent 607af18 commit 9b1d077

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

spiffe-rustls/tests/integration_mtls.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#![cfg(feature = "integration-tests")]
22

3-
use spiffe_rustls::{ClientConfigBuilder, ClientConfigOptions, ServerConfigBuilder, ServerConfigOptions};
3+
use rustls::pki_types::ServerName;
44
use spiffe::X509Source;
5+
use spiffe_rustls::{
6+
ClientConfigBuilder, ClientConfigOptions, ServerConfigBuilder, ServerConfigOptions,
7+
};
58
use std::sync::Arc;
69
use tokio::net::{TcpListener, TcpStream};
710
use tokio_rustls::{TlsAcceptor, TlsConnector};
8-
use rustls::pki_types::ServerName;
911

1012
#[tokio::test]
1113
async fn integration_mtls() -> Result<(), Box<dyn std::error::Error>> {
@@ -15,15 +17,15 @@ async fn integration_mtls() -> Result<(), Box<dyn std::error::Error>> {
1517
source.clone(),
1618
ServerConfigOptions::allow_any("example.org".try_into()?),
1719
)
18-
.build()
19-
.await?;
20+
.build()
21+
.await?;
2022

2123
let client_cfg = ClientConfigBuilder::new(
2224
source.clone(),
2325
ClientConfigOptions::allow_any("example.org".try_into()?),
2426
)
25-
.build()
26-
.await?;
27+
.build()
28+
.await?;
2729

2830
let acceptor = TlsAcceptor::from(Arc::new(server_cfg));
2931
let connector = TlsConnector::from(Arc::new(client_cfg));

0 commit comments

Comments
 (0)