Skip to content

Commit 72d1d9e

Browse files
committed
clippy fixes
1 parent 3548f43 commit 72d1d9e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/crypto/handshake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ impl Handshake {
175175
Ok(tx_buf)
176176
}
177177

178-
pub(crate) fn into_result(&self) -> Result<&HandshakeResult> {
178+
pub(crate) fn get_result(&self) -> Result<&HandshakeResult> {
179179
if !self.complete() {
180180
Err(Error::new(ErrorKind::Other, "Handshake is not complete"))
181181
} else {

src/noise.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ impl<IO: Stream<Item = Result<Vec<u8>>> + Sink<Vec<u8>> + Send + Unpin + 'static
267267

268268
/// Handle all message throughput. Sends, encrypts and decrypts messages
269269
/// Returns `true` `step` is already [`Step::Established`].
270+
#[allow(clippy::too_many_arguments)]
270271
fn poll_message_throughput<
271272
IO: Stream<Item = Result<Vec<u8>>> + Sink<Vec<u8>> + Send + Unpin + 'static,
272273
>(
@@ -554,7 +555,7 @@ fn handle_setup_message(
554555

555556
if handshake.complete() {
556557
debug!(initiator = %is_initiator, "Handshake completed");
557-
let handshake_result = match handshake.into_result() {
558+
let handshake_result = match handshake.get_result() {
558559
Ok(x) => x,
559560
Err(e) => {
560561
error!("into-result error {e:?}");

0 commit comments

Comments
 (0)