Skip to content

Commit

Permalink
style: fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Noah committed Aug 21, 2024
1 parent c1c1d24 commit 969ae5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ fn unpack_u16(bytes: &[u8], index: usize) -> u16 {

fn get_response(stream: &mut TcpStream, buffer: &mut [u8], code: &[u8; 2]) {
let cmd_data_length;
let mut cmd_buffer = [0 as u8; 4];
let mut cmd_buffer = [0u8; 4];

loop {
stream.read_exact(&mut cmd_buffer).unwrap();
Expand Down

0 comments on commit 969ae5c

Please sign in to comment.