We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b6a5e3 commit 3806b37Copy full SHA for 3806b37
test/test_sendfile.rs
@@ -94,7 +94,7 @@ fn test_sendfile_freebsd() {
94
+ &trailer_strings.concat();
95
96
// Verify the message that was sent
97
- assert_eq!(bytes_written as usize, expected_string.as_bytes().len());
+ assert_eq!(bytes_written as usize, expected_string.len());
98
99
let mut read_string = String::new();
100
let bytes_read = rd.read_to_string(&mut read_string).unwrap();
0 commit comments