@@ -235,7 +235,7 @@ const RETRY_INTEGRITY_NONCE_V1: [u8; 12] = [
235235 0x46 , 0x15 , 0x99 , 0xd3 , 0x5d , 0x63 , 0x2b , 0xf2 , 0x23 , 0x98 , 0x25 , 0xbb ,
236236] ;
237237
238- impl crypto :: HeaderKey for Box < dyn HeaderProtectionKey > {
238+ impl HeaderKey for Box < dyn HeaderProtectionKey > {
239239 fn decrypt ( & self , pn_offset : usize , packet : & mut [ u8 ] ) {
240240 let ( header, sample) = packet. split_at_mut ( pn_offset + 4 ) ;
241241 let ( first, rest) = header. split_at_mut ( 1 ) ;
@@ -380,7 +380,7 @@ impl crypto::ClientConfig for QuicClientConfig {
380380 version,
381381 got_handshake_data : false ,
382382 next_secrets : None ,
383- inner : rustls :: quic :: Connection :: Client (
383+ inner : Connection :: Client (
384384 rustls:: quic:: ClientConnection :: new (
385385 self . inner . clone ( ) ,
386386 version,
@@ -461,7 +461,7 @@ impl QuicServerConfig {
461461 pub ( crate ) fn new (
462462 cert_chain : Vec < CertificateDer < ' static > > ,
463463 key : PrivateKeyDer < ' static > ,
464- ) -> Result < Self , rustls :: Error > {
464+ ) -> Result < Self , Error > {
465465 let inner = Self :: inner ( cert_chain, key) ?;
466466 Ok ( Self {
467467 // We're confident that the *ring* default provider contains TLS13_AES_128_GCM_SHA256
@@ -492,7 +492,7 @@ impl QuicServerConfig {
492492 pub ( crate ) fn inner (
493493 cert_chain : Vec < CertificateDer < ' static > > ,
494494 key : PrivateKeyDer < ' static > ,
495- ) -> Result < rustls:: ServerConfig , rustls :: Error > {
495+ ) -> Result < rustls:: ServerConfig , Error > {
496496 let mut inner = rustls:: ServerConfig :: builder_with_provider ( configured_provider ( ) )
497497 . with_protocol_versions ( & [ & rustls:: version:: TLS13 ] )
498498 . unwrap ( ) // The *ring* default provider supports TLS 1.3
@@ -536,7 +536,7 @@ impl crypto::ServerConfig for QuicServerConfig {
536536 version,
537537 got_handshake_data : false ,
538538 next_secrets : None ,
539- inner : rustls :: quic :: Connection :: Server (
539+ inner : Connection :: Server (
540540 rustls:: quic:: ServerConnection :: new ( self . inner . clone ( ) , version, to_vec ( params) )
541541 . unwrap ( ) ,
542542 ) ,
@@ -586,9 +586,7 @@ pub(crate) fn initial_suite_from_provider(
586586 . cipher_suites
587587 . iter ( )
588588 . find_map ( |cs| match ( cs. suite ( ) , cs. tls13 ( ) ) {
589- ( rustls:: CipherSuite :: TLS13_AES_128_GCM_SHA256 , Some ( suite) ) => {
590- Some ( suite. quic_suite ( ) )
591- }
589+ ( CipherSuite :: TLS13_AES_128_GCM_SHA256 , Some ( suite) ) => Some ( suite. quic_suite ( ) ) ,
592590 _ => None ,
593591 } )
594592 . flatten ( )
0 commit comments