Skip to content

Commit 3806b37

Browse files
authored
Clippy cleanup: needless as_bytes (#2545)
1 parent 4b6a5e3 commit 3806b37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_sendfile.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ fn test_sendfile_freebsd() {
9494
+ &trailer_strings.concat();
9595

9696
// Verify the message that was sent
97-
assert_eq!(bytes_written as usize, expected_string.as_bytes().len());
97+
assert_eq!(bytes_written as usize, expected_string.len());
9898

9999
let mut read_string = String::new();
100100
let bytes_read = rd.read_to_string(&mut read_string).unwrap();

0 commit comments

Comments
 (0)