From 3806b37f83d5732dcbe196cbde2e89b4e241460c Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Tue, 19 Nov 2024 17:59:57 -0700 Subject: [PATCH] Clippy cleanup: needless as_bytes (#2545) --- test/test_sendfile.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_sendfile.rs b/test/test_sendfile.rs index 40cefbb90d..609a1a5bc7 100644 --- a/test/test_sendfile.rs +++ b/test/test_sendfile.rs @@ -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();