@@ -85,8 +85,8 @@ pub struct NoiseConfig {
8585impl ClientConfig for NoiseConfig {
8686 fn start_session (
8787 self : Arc < Self > ,
88- version : u32 ,
89- server_name : & str ,
88+ _version : u32 ,
89+ _server_name : & str ,
9090 params : & TransportParameters ,
9191 ) -> Result < Box < dyn Session > , ConnectError > {
9292 Ok ( Box :: new ( NoiseConfig :: start_session (
@@ -100,17 +100,17 @@ impl ClientConfig for NoiseConfig {
100100impl ServerConfig for NoiseConfig {
101101 fn start_session (
102102 self : Arc < Self > ,
103- version : u32 ,
103+ _version : u32 ,
104104 params : & TransportParameters ,
105105 ) -> Box < dyn Session > {
106106 Box :: new ( NoiseConfig :: start_session ( & self , Side :: Server , params) )
107107 }
108108
109109 fn initial_keys (
110110 & self ,
111- version : u32 ,
112- dst_cid : & ConnectionId ,
113- side : Side ,
111+ _version : u32 ,
112+ _dst_cid : & ConnectionId ,
113+ _side : Side ,
114114 ) -> Result < Keys , quinn_proto:: crypto:: UnsupportedVersion > {
115115 Ok ( Keys {
116116 header : header_keypair ( ) ,
@@ -121,7 +121,7 @@ impl ServerConfig for NoiseConfig {
121121 } )
122122 }
123123
124- fn retry_tag ( & self , version : u32 , orig_dst_cid : & ConnectionId , packet : & [ u8 ] ) -> [ u8 ; 16 ] {
124+ fn retry_tag ( & self , _version : u32 , orig_dst_cid : & ConnectionId , packet : & [ u8 ] ) -> [ u8 ; 16 ] {
125125 let mut pseudo_packet = Vec :: with_capacity ( packet. len ( ) + orig_dst_cid. len ( ) + 1 ) ;
126126 pseudo_packet. push ( orig_dst_cid. len ( ) as u8 ) ;
127127 pseudo_packet. extend_from_slice ( orig_dst_cid) ;
0 commit comments