Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Dec 21, 2024
1 parent f6d7f1a commit b1fa398
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions russh/src/cipher/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use std::fmt::Debug;
use std::marker::PhantomData;
use std::num::Wrapping;

use self::cbc::CbcWrapper;
use aes::{Aes128, Aes192, Aes256};
use byteorder::{BigEndian, ByteOrder};
use ctr::Ctr128BE;
Expand All @@ -31,6 +30,7 @@ use once_cell::sync::Lazy;
use ssh_encoding::Encode;
use tokio::io::{AsyncRead, AsyncReadExt};

use self::cbc::CbcWrapper;
use crate::mac::MacAlgorithm;
use crate::sshbuffer::SSHBuffer;
use crate::Error;
Expand Down Expand Up @@ -276,9 +276,7 @@ pub(crate) async fn read<R: AsyncRead + Unpin>(
let l = cipher.packet_length_to_read_for_block_length();

#[allow(clippy::indexing_slicing)] // length checked
stream
.read_exact(&mut buffer.buffer[l..])
.await?;
stream.read_exact(&mut buffer.buffer[l..]).await?;

debug!("read_exact done");
let seqn = buffer.seqn.0;
Expand Down

0 comments on commit b1fa398

Please sign in to comment.