Fix clippy lints

This commit is contained in:
Sosthène Guédon
2023-08-30 17:13:28 +02:00
parent d7a2bed133
commit b0552e04d1
2 changed files with 6 additions and 5 deletions
+1
View File
@@ -103,6 +103,7 @@ fn serialize_len(len: usize) -> heapless::Vec<u8, 3> {
let arr = len.to_be_bytes();
buf.extend_from_slice(&[0x82, arr[0], arr[1]]).ok();
} else {
panic!("Length is too long to be serialized");
}
buf
}