We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
...
1 parent d51753d commit 1082524Copy full SHA for 1082524
lightning/src/util/ser.rs
@@ -364,14 +364,14 @@ impl Writeable for BigSize {
364
#[inline]
365
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), io::Error> {
366
match self.0 {
367
- 0...0xFC => {
+ 0..=0xFC => {
368
(self.0 as u8).write(writer)
369
},
370
- 0xFD...0xFFFF => {
+ 0xFD..=0xFFFF => {
371
0xFDu8.write(writer)?;
372
(self.0 as u16).write(writer)
373
374
- 0x10000...0xFFFFFFFF => {
+ 0x10000..=0xFFFFFFFF => {
375
0xFEu8.write(writer)?;
376
(self.0 as u32).write(writer)
377
0 commit comments