Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
phsym committed Sep 23, 2024
1 parent 333aef8 commit 88c1642
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 98 deletions.
2 changes: 1 addition & 1 deletion examples/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn main() {
peer.sendmsg("foo bar again\n".as_bytes(), 6).unwrap();
let mut data = [0u8; 1024];
// Read data using the io::Read trait
peer.read(&mut data).unwrap();
peer.read_exact(&mut data).unwrap();
// Read data using SCTP advanced feature, and retrieve the stream id
// on which data were received
let (size, stream) = peer.recvmsg(&mut data).unwrap();
Expand Down
Loading

0 comments on commit 88c1642

Please sign in to comment.