File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ impl Handshake {
175
175
Ok ( tx_buf)
176
176
}
177
177
178
- pub ( crate ) fn into_result ( & self ) -> Result < & HandshakeResult > {
178
+ pub ( crate ) fn get_result ( & self ) -> Result < & HandshakeResult > {
179
179
if !self . complete ( ) {
180
180
Err ( Error :: new ( ErrorKind :: Other , "Handshake is not complete" ) )
181
181
} else {
Original file line number Diff line number Diff line change @@ -267,6 +267,7 @@ impl<IO: Stream<Item = Result<Vec<u8>>> + Sink<Vec<u8>> + Send + Unpin + 'static
267
267
268
268
/// Handle all message throughput. Sends, encrypts and decrypts messages
269
269
/// Returns `true` `step` is already [`Step::Established`].
270
+ #[ allow( clippy:: too_many_arguments) ]
270
271
fn poll_message_throughput <
271
272
IO : Stream < Item = Result < Vec < u8 > > > + Sink < Vec < u8 > > + Send + Unpin + ' static ,
272
273
> (
@@ -554,7 +555,7 @@ fn handle_setup_message(
554
555
555
556
if handshake. complete ( ) {
556
557
debug ! ( initiator = %is_initiator, "Handshake completed" ) ;
557
- let handshake_result = match handshake. into_result ( ) {
558
+ let handshake_result = match handshake. get_result ( ) {
558
559
Ok ( x) => x,
559
560
Err ( e) => {
560
561
error ! ( "into-result error {e:?}" ) ;
You can’t perform that action at this time.
0 commit comments