@@ -201,7 +201,8 @@ impl SansIoMachine {
201201 Ok ( made_progress. then_some ( ( ) ) )
202202 }
203203
204- #[ allow( unused, reason = "vectorized version of 'get_next_sendable_message'" ) ]
204+ // NB: vectorized version of 'get_next_sendable_message'. currently just used in tests
205+ #[ cfg( test) ]
205206 fn get_sendable_messages ( & mut self ) -> Result < Vec < Vec < u8 > > , IoError > {
206207 self . poll_all_enc_dec ( ) ?;
207208 Ok ( self . encrypted_tx . drain ( ..) . collect ( ) )
@@ -212,7 +213,8 @@ impl SansIoMachine {
212213 Ok ( self . encrypted_tx . pop_front ( ) )
213214 }
214215
215- #[ allow( unused, reason = "vectorized version of 'receive_next'" ) ]
216+ #[ cfg( test) ]
217+ // NB: vectorized version of 'receive_next'. currently just used in tests
216218 fn receive_next_messages ( & mut self , encrypted_messages : Vec < Vec < u8 > > ) {
217219 self . encrypted_rx
218220 . extend ( encrypted_messages. into_iter ( ) . map ( Ok ) ) ;
@@ -222,7 +224,7 @@ impl SansIoMachine {
222224 self . encrypted_rx . push_back ( Ok ( encrypted_msg) ) ;
223225 }
224226
225- #[ allow ( unused, reason = "add a new plaintext message to send" ) ]
227+ #[ expect ( unused, reason = "add a new plaintext message to send" ) ]
226228 fn queue_msg ( & mut self , msg : Vec < u8 > ) {
227229 self . plain_tx . push_back ( msg) ;
228230 }
@@ -641,7 +643,7 @@ mod tests {
641643 }
642644 }
643645
644- #[ allow ( clippy:: type_complexity) ]
646+ #[ expect ( clippy:: type_complexity) ]
645647 fn create_mock_io_pair ( ) -> (
646648 MockIo < impl Stream < Item = Result < Vec < u8 > , std:: io:: Error > > > ,
647649 mpsc:: UnboundedSender < Result < Vec < u8 > , std:: io:: Error > > ,
0 commit comments