Skip to content

Commit

Permalink
fix: formatting errors from #19
Browse files Browse the repository at this point in the history
  • Loading branch information
lukipuki committed Oct 10, 2024
1 parent fc1b0b9 commit a25b928
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/connections/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,8 @@ where
match read_stream.read(&mut buffer).await {
Ok(0) => {
warn!("read_stream has reached EOF");
return Err(Error::InternalStreamError(
InternalStreamError::Eof
))
},
return Err(Error::InternalStreamError(InternalStreamError::Eof));
}
Ok(n) => {
trace!("Read {} bytes from stream", n);
let data: IncomingStreamData = buffer[..n].to_vec().into();
Expand Down
2 changes: 1 addition & 1 deletion src/errors_internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub enum InternalStreamError {

/// An error indicating the stream has reached its "end of file" and will likely no longer be able to produce bytes.
#[error("Stream has reached EOF")]
Eof
Eof,
}

/// An enum that defines the possible internal errors that can occur within the library when handling data channels.
Expand Down

0 comments on commit a25b928

Please sign in to comment.