@@ -8,8 +8,7 @@ use core::fmt;
88
99use crate :: { MalformedStructureError , RawStructure } ;
1010
11- #[ derive( Copy , Clone , Debug , Eq , Hash , PartialEq ) ]
12- #[ derive( Default ) ]
11+ #[ derive( Copy , Clone , Debug , Eq , Hash , PartialEq , Default ) ]
1312pub enum MemoryArrayLocation {
1413 Other ,
1514 #[ default]
@@ -30,7 +29,6 @@ pub enum MemoryArrayLocation {
3029 Undefined ( u8 ) ,
3130}
3231
33-
3432impl From < u8 > for MemoryArrayLocation {
3533 fn from ( _type : u8 ) -> Self {
3634 match _type {
@@ -77,8 +75,7 @@ impl fmt::Display for MemoryArrayLocation {
7775 }
7876}
7977
80- #[ derive( Copy , Clone , Debug , Eq , Hash , PartialEq ) ]
81- #[ derive( Default ) ]
78+ #[ derive( Copy , Clone , Debug , Eq , Hash , PartialEq , Default ) ]
8279pub enum MemoryArrayUse {
8380 Other ,
8481 #[ default]
@@ -91,7 +88,6 @@ pub enum MemoryArrayUse {
9188 Undefined ( u8 ) ,
9289}
9390
94-
9591impl From < u8 > for MemoryArrayUse {
9692 fn from ( _type : u8 ) -> Self {
9793 match _type {
@@ -122,8 +118,7 @@ impl fmt::Display for MemoryArrayUse {
122118 }
123119}
124120
125- #[ derive( Copy , Clone , Debug , Eq , Hash , PartialEq ) ]
126- #[ derive( Default ) ]
121+ #[ derive( Copy , Clone , Debug , Eq , Hash , PartialEq , Default ) ]
127122pub enum MemoryArrayErrorCorrectionTypes {
128123 Other ,
129124 #[ default]
@@ -136,7 +131,6 @@ pub enum MemoryArrayErrorCorrectionTypes {
136131 Undefined ( u8 ) ,
137132}
138133
139-
140134impl From < u8 > for MemoryArrayErrorCorrectionTypes {
141135 fn from ( _type : u8 ) -> Self {
142136 match _type {
0 commit comments