Skip to content

Commit

Permalink
Clippy cleanup: needless as_bytes (#2545)
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers authored Nov 20, 2024
1 parent 4b6a5e3 commit 3806b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_sendfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ fn test_sendfile_freebsd() {
+ &trailer_strings.concat();

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

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

0 comments on commit 3806b37

Please sign in to comment.