more warnings

This commit is contained in:
bunnie 2025-08-19 19:46:23 +08:00
parent ecbac27e76
commit 53c4485387
2 changed files with 5 additions and 6 deletions

View file

@ -49,7 +49,7 @@ struct Writer<'a> {
}
impl<'a> Writer<'a> {
pub fn new(encoded_cbor: &mut Vec<u8>) -> Writer {
pub fn new(encoded_cbor: &mut Vec<u8>) -> Writer<'_> {
Writer { encoded_cbor }
}

View file

@ -7,6 +7,7 @@
use packing::Packed;
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
#[allow(dead_code)]
pub enum VersionDescriptor {
None = 0x0000,
/// SAM (no version claimed)
@ -971,7 +972,5 @@ pub enum VersionDescriptor {
Ieee16672018 = 0xFFC4,
}
impl Default for VersionDescriptor {
fn default() -> Self {
VersionDescriptor::None
}
fn default() -> Self { VersionDescriptor::None }
}