File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
communication/src/allocator/zero_copy Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ impl<A: Allocate> Allocate for TcpAllocator<A> {
261261
262262 // We expect that `bytes` contains an integral number of messages.
263263 // No splitting occurs across allocations.
264- while bytes. len ( ) > 0 {
264+ while ! bytes. is_empty ( ) {
265265
266266 if let Some ( header) = MessageHeader :: try_read ( & bytes[ ..] ) {
267267
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ impl Allocate for ProcessAllocator {
188188
189189 // We expect that `bytes` contains an integral number of messages.
190190 // No splitting occurs across allocations.
191- while bytes. len ( ) > 0 {
191+ while ! bytes. is_empty ( ) {
192192
193193 if let Some ( header) = MessageHeader :: try_read ( & bytes[ ..] ) {
194194
Original file line number Diff line number Diff line change 9595 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
9696 f. debug_struct ( "Stream" )
9797 . field ( "source" , & self . name )
98- // TODO: Use `.finish_non_exhaustive()` after rust/#67364 lands
99- . finish ( )
98+ . finish_non_exhaustive ( )
10099 }
101100}
You can’t perform that action at this time.
0 commit comments