Skip to content

Commit

Permalink
Clean up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Dec 11, 2023
1 parent 281a1bc commit 5650a59
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/acceptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ use std::pin::Pin;
use std::sync::Arc;

use futures_util::ready;
use hyper::server::{
accept::Accept,
conn::{AddrIncoming, AddrStream},
};
use hyper::server::accept::Accept;
use hyper::server::conn::{AddrIncoming, AddrStream};
use rustls::{ServerConfig, ServerConnection};
use tokio::io::{AsyncRead, AsyncWrite, ReadBuf};

Expand Down
1 change: 1 addition & 0 deletions src/acceptor/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use pki_types::{CertificateDer, PrivateKeyDer};
use rustls::ServerConfig;

use super::TlsAcceptor;

/// Builder for [`TlsAcceptor`]
pub struct AcceptorBuilder<State>(State);

Expand Down
4 changes: 3 additions & 1 deletion src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ use std::sync::Arc;
use std::task::{Context, Poll};
use std::{fmt, io};

use hyper::{client::connect::Connection, service::Service, Uri};
use hyper::client::connect::Connection;
use hyper::service::Service;
use hyper::Uri;
use pki_types::ServerName;
use tokio::io::{AsyncRead, AsyncWrite};
use tokio_rustls::TlsConnector;
Expand Down

0 comments on commit 5650a59

Please sign in to comment.