Skip to content

Commit

Permalink
Fixed missing unwraps in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Zaddach committed Jul 22, 2021
1 parent 72a6796 commit 7e4d159
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ fn test_transfer_descriptor() {
let mut file = std::fs::File::create(& temp_file_path).unwrap();
let text = "This is a text string";
use std::io::Write;
file.write(text.as_bytes());
file.write(text.as_bytes()).unwrap();
std::mem::drop(file);
let file = std::fs::File::open(& temp_file_path).unwrap();

Expand All @@ -673,6 +673,6 @@ fn test_transfer_descriptor() {
let mut file: std::fs::File = received_person_and_descriptor.1.into();
use std::io::Read;
let mut read_text = String::new();
file.read_to_string(&mut read_text);
file.read_to_string(&mut read_text).unwrap();
assert_eq!(text, read_text);
}

0 comments on commit 7e4d159

Please sign in to comment.