Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-iqlusion committed Aug 28, 2024
1 parent 492448f commit dff86ab
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions p2p/src/secret_connection/async_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ impl AsyncSecretConnection {

if chunk_length as usize > DATA_MAX_SIZE {
return Err(std::io::Error::new(
std::io::ErrorKind::Other,
format!("chunk is too big: {chunk_length}! max: {DATA_MAX_SIZE}"),
).into());
std::io::ErrorKind::Other,
format!("chunk is too big: {chunk_length}! max: {DATA_MAX_SIZE}"),
)
.into());
}

let mut chunk = vec![0; chunk_length as usize];
Expand Down

0 comments on commit dff86ab

Please sign in to comment.