Skip to content

Commit

Permalink
f Fix deprecated ... syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Nov 1, 2023
1 parent d51753d commit 1082524
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lightning/src/util/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,14 +364,14 @@ impl Writeable for BigSize {
#[inline]
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), io::Error> {
match self.0 {
0...0xFC => {
0..=0xFC => {
(self.0 as u8).write(writer)
},
0xFD...0xFFFF => {
0xFD..=0xFFFF => {
0xFDu8.write(writer)?;
(self.0 as u16).write(writer)
},
0x10000...0xFFFFFFFF => {
0x10000..=0xFFFFFFFF => {
0xFEu8.write(writer)?;
(self.0 as u32).write(writer)
},
Expand Down

0 comments on commit 1082524

Please sign in to comment.