mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
more warnings
This commit is contained in:
parent
ecbac27e76
commit
53c4485387
2 changed files with 5 additions and 6 deletions
|
|
@ -49,7 +49,7 @@ struct Writer<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> 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 }
|
Writer { encoded_cbor }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
use packing::Packed;
|
use packing::Packed;
|
||||||
|
|
||||||
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
#[derive(Clone, Copy, Eq, PartialEq, Debug, Packed)]
|
||||||
|
#[allow(dead_code)]
|
||||||
pub enum VersionDescriptor {
|
pub enum VersionDescriptor {
|
||||||
None = 0x0000,
|
None = 0x0000,
|
||||||
/// SAM (no version claimed)
|
/// SAM (no version claimed)
|
||||||
|
|
@ -216,7 +217,7 @@ pub enum VersionDescriptor {
|
||||||
/// MMC-4 (no version claimed)
|
/// MMC-4 (no version claimed)
|
||||||
MMC4NoVersionClaimed = 0x03A0,
|
MMC4NoVersionClaimed = 0x03A0,
|
||||||
/// MMC-4 T10/1545-D revision 5"},
|
/// MMC-4 T10/1545-D revision 5"},
|
||||||
MMC4T101545DRevision5 = 0x03B0,
|
MMC4T101545DRevision5 = 0x03B0,
|
||||||
/// MMC-4 T10/1545-D revision 5a
|
/// MMC-4 T10/1545-D revision 5a
|
||||||
MMC4T101545DRevision5a = 0x03B1,
|
MMC4T101545DRevision5a = 0x03B1,
|
||||||
/// MMC-4 T10/1545-D revision 3
|
/// MMC-4 T10/1545-D revision 3
|
||||||
|
|
@ -971,7 +972,5 @@ pub enum VersionDescriptor {
|
||||||
Ieee16672018 = 0xFFC4,
|
Ieee16672018 = 0xFFC4,
|
||||||
}
|
}
|
||||||
impl Default for VersionDescriptor {
|
impl Default for VersionDescriptor {
|
||||||
fn default() -> Self {
|
fn default() -> Self { VersionDescriptor::None }
|
||||||
VersionDescriptor::None
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue