Skip to content

Commit 1082524

Browse files
committed
f Fix deprecated ... syntax
1 parent d51753d commit 1082524

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/util/ser.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,14 +364,14 @@ impl Writeable for BigSize {
364364
#[inline]
365365
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), io::Error> {
366366
match self.0 {
367-
0...0xFC => {
367+
0..=0xFC => {
368368
(self.0 as u8).write(writer)
369369
},
370-
0xFD...0xFFFF => {
370+
0xFD..=0xFFFF => {
371371
0xFDu8.write(writer)?;
372372
(self.0 as u16).write(writer)
373373
},
374-
0x10000...0xFFFFFFFF => {
374+
0x10000..=0xFFFFFFFF => {
375375
0xFEu8.write(writer)?;
376376
(self.0 as u32).write(writer)
377377
},

0 commit comments

Comments
 (0)