File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2914,7 +2914,7 @@ mod linux_errqueue {
29142914 )
29152915 . unwrap ( ) ;
29162916 // The sent message / destination associated with the error is returned:
2917- assert_eq ! ( msg. bytes, MESSAGE_CONTENTS . as_bytes ( ) . len( ) ) ;
2917+ assert_eq ! ( msg. bytes, MESSAGE_CONTENTS . len( ) ) ;
29182918 // recvmsg(2): "The original destination address of the datagram that caused the error is
29192919 // supplied via msg_name;" however, this is not literally true. E.g., an earlier version
29202920 // of this test used 0.0.0.0 (::0) as the destination address, which was mutated into
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ fn test_sendfile_dragonfly() {
143143 + & trailer_strings. concat ( ) ;
144144
145145 // Verify the message that was sent
146- assert_eq ! ( bytes_written as usize , expected_string. as_bytes ( ) . len( ) ) ;
146+ assert_eq ! ( bytes_written as usize , expected_string. len( ) ) ;
147147
148148 let mut read_string = String :: new ( ) ;
149149 let bytes_read = rd. read_to_string ( & mut read_string) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments