Skip to content

Commit 4f5685b

Browse files
Merge pull request #662 from frankmcsherry/further_cleanup
Further cleanup
2 parents f64316a + 90ca500 commit 4f5685b

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

communication/src/allocator/zero_copy/allocator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

communication/src/allocator/zero_copy/allocator_process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

timely/src/dataflow/stream.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ where
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
}

0 commit comments

Comments
 (0)