Skip to content

Commit 869e23c

Browse files
committed
fixup: spaces -> tabs
1 parent 6e3ddac commit 869e23c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lightning/src/util/ser.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,18 @@ pub struct FixedLengthReader<R: Read> {
101101
total_bytes: u64,
102102
}
103103
impl<R: Read> FixedLengthReader<R> {
104-
/// Returns a new [`FixedLengthReader`].
104+
/// Returns a new [`FixedLengthReader`].
105105
pub fn new(read: R, total_bytes: u64) -> Self {
106106
Self { read, bytes_read: 0, total_bytes }
107107
}
108108

109-
/// Returns whether some bytes are remaining or not.
109+
/// Returns whether some bytes are remaining or not.
110110
#[inline]
111111
pub fn bytes_remain(&mut self) -> bool {
112112
self.bytes_read != self.total_bytes
113113
}
114114

115-
/// Consumes the remaining bytes.
115+
/// Consumes the remaining bytes.
116116
#[inline]
117117
pub fn eat_remaining(&mut self) -> Result<(), DecodeError> {
118118
copy(self, &mut sink()).unwrap();
@@ -152,11 +152,11 @@ impl<R: Read> LengthRead for FixedLengthReader<R> {
152152
/// between "EOF reached before we started" and "EOF reached mid-read".
153153
pub struct ReadTrackingReader<R: Read> {
154154
read: R,
155-
/// Returns whether we have read from this reader or not yet.
155+
/// Returns whether we have read from this reader or not yet.
156156
pub have_read: bool,
157157
}
158158
impl<R: Read> ReadTrackingReader<R> {
159-
/// Returns a new [`ReadTrackingReader`].
159+
/// Returns a new [`ReadTrackingReader`].
160160
pub fn new(read: R) -> Self {
161161
Self { read, have_read: false }
162162
}

0 commit comments

Comments
 (0)