Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Paschal Obba committed Nov 25, 2023
1 parent acd827d commit c63913d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ l.write("hello world")
// malformed somewhere between the writing and reading. Think of it as an integrity hash.
match l.read() {
Ok(Some(message)) => println!(message),
Ok(None) => _,
Err(e) => _
Ok(None) => (),
Err(e) => ()
}
```

Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,10 @@ mod tests {
match l.read() {
Ok(Some(res)) => {
let message: String = String::from_utf8(res.message).unwrap();
assert!(res.is_valid);
eprintln!("Receiver: {:?}", message)
},
Err(e) => /* eprintln!("ERROR {:?}", e) */ (),
Err(_e) => /* eprintln!("ERROR {:?}", e) */ (),
Ok(None) => /* eprintln!("nothing is happening") */ ()
}
}
Expand Down

0 comments on commit c63913d

Please sign in to comment.