File tree 2 files changed +2
-2
lines changed 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2914,7 +2914,7 @@ mod linux_errqueue {
2914
2914
)
2915
2915
. unwrap ( ) ;
2916
2916
// 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( ) ) ;
2918
2918
// recvmsg(2): "The original destination address of the datagram that caused the error is
2919
2919
// supplied via msg_name;" however, this is not literally true. E.g., an earlier version
2920
2920
// 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() {
143
143
+ & trailer_strings. concat ( ) ;
144
144
145
145
// 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( ) ) ;
147
147
148
148
let mut read_string = String :: new ( ) ;
149
149
let bytes_read = rd. read_to_string ( & mut read_string) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments