Skip to content

Commit

Permalink
Clippy cleanup: needless as_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed Nov 19, 2024
1 parent 4b6a5e3 commit 683fb57
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 683fb57

Please sign in to comment.