Skip to content

Commit

Permalink
chore: Correct linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 committed Oct 25, 2023
1 parent a04000e commit 01fe313
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions warp/src/crypto/cipher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ impl Cipher {
}
};
}
Ok(read_count) if read_count == 0 => break,
Ok(0) => break,
Ok(read_count) => {
match stream.decrypt_last(&buffer[..read_count]).map_err(|_| Error::DecryptionStreamError) {
Ok(data) => {
Expand Down Expand Up @@ -350,7 +350,7 @@ impl Cipher {
}
};
}
Ok(read_count) if read_count == 0 => break,
Ok(0) => break,
Ok(read_count) => {
match stream.decrypt_last(&buffer[..read_count]).map_err(|_| Error::DecryptionStreamError) {
Ok(data) => {
Expand Down Expand Up @@ -460,7 +460,7 @@ impl Cipher {

writer.write_all(&plaintext)?
}
Ok(read_count) if read_count == 0 => break,
Ok(0) => break,
Ok(read_count) => {
let plaintext = stream
.decrypt_last(&buffer[..read_count])
Expand Down

0 comments on commit 01fe313

Please sign in to comment.