Skip to content

Commit 7a0df7d

Browse files
committed
Code format using cargo fmt
1 parent bd1d6da commit 7a0df7d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/socket/tcp.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1875,7 +1875,8 @@ impl<'a> TcpSocket<'a> {
18751875
payload_len,
18761876
payload_offset
18771877
);
1878-
let len_written = self.rx_buffer
1878+
let len_written = self
1879+
.rx_buffer
18791880
.write_unallocated(payload_offset, repr.payload);
18801881
debug_assert!(len_written == payload_len);
18811882
}

src/storage/packet_buffer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl<'a, H> PacketBuffer<'a, H> {
102102
// Add padding to the end of the ring buffer so that the
103103
// contiguous window is at the beginning of the ring buffer.
104104
*self.metadata_ring.enqueue_one()? = PacketMetadata::padding(contig_window);
105-
// note(discard): function does not write to the result
105+
// note(discard): function does not write to the result
106106
// enqueued padding buffer location
107107
let _buf_enqueued = self.payload_ring.enqueue_many(contig_window);
108108
}

src/storage/ring_buffer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Some of the functions in ring buffer is marked as #[must_use]. It notes that
1+
// Some of the functions in ring buffer is marked as #[must_use]. It notes that
22
// these functions may have side effects, and it's implemented by [RFC 1940].
33
// [RFC 1940]: https://github.com/rust-lang/rust/issues/43302
44

0 commit comments

Comments
 (0)