@@ -180,7 +180,7 @@ pub struct Package<'a> {
180
180
children : Vec < & ' a dyn Aml > ,
181
181
}
182
182
183
- impl < ' a > Aml for Package < ' a > {
183
+ impl Aml for Package < ' _ > {
184
184
fn append_aml_bytes ( & self , bytes : & mut Vec < u8 > ) -> Result < ( ) , AmlError > {
185
185
let mut tmp = vec ! [ self . children. len( ) . try_into( ) . unwrap( ) ] ;
186
186
for child in & self . children {
@@ -336,7 +336,7 @@ pub struct ResourceTemplate<'a> {
336
336
children : Vec < & ' a dyn Aml > ,
337
337
}
338
338
339
- impl < ' a > Aml for ResourceTemplate < ' a > {
339
+ impl Aml for ResourceTemplate < ' _ > {
340
340
fn append_aml_bytes ( & self , bytes : & mut Vec < u8 > ) -> Result < ( ) , AmlError > {
341
341
let mut tmp = Vec :: new ( ) ;
342
342
// Add buffer data
@@ -607,7 +607,7 @@ pub struct Device<'a> {
607
607
children : Vec < & ' a dyn Aml > ,
608
608
}
609
609
610
- impl < ' a > Aml for Device < ' a > {
610
+ impl Aml for Device < ' _ > {
611
611
fn append_aml_bytes ( & self , bytes : & mut Vec < u8 > ) -> Result < ( ) , AmlError > {
612
612
let mut tmp = Vec :: new ( ) ;
613
613
self . path . append_aml_bytes ( & mut tmp) ?;
@@ -637,7 +637,7 @@ pub struct Scope<'a> {
637
637
children : Vec < & ' a dyn Aml > ,
638
638
}
639
639
640
- impl < ' a > Aml for Scope < ' a > {
640
+ impl Aml for Scope < ' _ > {
641
641
fn append_aml_bytes ( & self , bytes : & mut Vec < u8 > ) -> Result < ( ) , AmlError > {
642
642
let mut tmp = Vec :: new ( ) ;
643
643
self . path . append_aml_bytes ( & mut tmp) ?;
@@ -678,7 +678,7 @@ impl<'a> Method<'a> {
678
678
}
679
679
}
680
680
681
- impl < ' a > Aml for Method < ' a > {
681
+ impl Aml for Method < ' _ > {
682
682
fn append_aml_bytes ( & self , bytes : & mut Vec < u8 > ) -> Result < ( ) , AmlError > {
683
683
let mut tmp = Vec :: new ( ) ;
684
684
self . path . append_aml_bytes ( & mut tmp) ?;
@@ -707,7 +707,7 @@ impl<'a> Return<'a> {
707
707
}
708
708
}
709
709
710
- impl < ' a > Aml for Return < ' a > {
710
+ impl Aml for Return < ' _ > {
711
711
fn append_aml_bytes ( & self , bytes : & mut Vec < u8 > ) -> Result < ( ) , AmlError > {
712
712
bytes. push ( 0xa4 ) ; // ReturnOp
713
713
self . value . append_aml_bytes ( bytes) ?;
@@ -850,7 +850,7 @@ impl<'a> If<'a> {
850
850
}
851
851
}
852
852
853
- impl < ' a > Aml for If < ' a > {
853
+ impl Aml for If < ' _ > {
854
854
fn append_aml_bytes ( & self , bytes : & mut Vec < u8 > ) -> Result < ( ) , AmlError > {
855
855
let mut tmp = Vec :: new ( ) ;
856
856
self . predicate . append_aml_bytes ( & mut tmp) ?;
@@ -878,7 +878,7 @@ impl<'a> Equal<'a> {
878
878
}
879
879
}
880
880
881
- impl < ' a > Aml for Equal < ' a > {
881
+ impl Aml for Equal < ' _ > {
882
882
fn append_aml_bytes ( & self , bytes : & mut Vec < u8 > ) -> Result < ( ) , AmlError > {
883
883
bytes. push ( 0x93 ) ; // LEqualOp
884
884
self . left . append_aml_bytes ( bytes) ?;
@@ -898,7 +898,7 @@ impl<'a> LessThan<'a> {
898
898
}
899
899
}
900
900
901
- impl < ' a > Aml for LessThan < ' a > {
901
+ impl Aml for LessThan < ' _ > {
902
902
fn append_aml_bytes ( & self , bytes : & mut Vec < u8 > ) -> Result < ( ) , AmlError > {
903
903
bytes. push ( 0x95 ) ; // LLessOp
904
904
self . left . append_aml_bytes ( bytes) ?;
@@ -942,7 +942,7 @@ impl<'a> Store<'a> {
942
942
}
943
943
}
944
944
945
- impl < ' a > Aml for Store < ' a > {
945
+ impl Aml for Store < ' _ > {
946
946
fn append_aml_bytes ( & self , bytes : & mut Vec < u8 > ) -> Result < ( ) , AmlError > {
947
947
bytes. push ( 0x70 ) ; // StoreOp
948
948
self . value . append_aml_bytes ( bytes) ?;
@@ -1023,7 +1023,7 @@ impl<'a> Notify<'a> {
1023
1023
}
1024
1024
}
1025
1025
1026
- impl < ' a > Aml for Notify < ' a > {
1026
+ impl Aml for Notify < ' _ > {
1027
1027
fn append_aml_bytes ( & self , bytes : & mut Vec < u8 > ) -> Result < ( ) , AmlError > {
1028
1028
bytes. push ( 0x86 ) ; // NotifyOp
1029
1029
self . object . append_aml_bytes ( bytes) ?;
@@ -1046,7 +1046,7 @@ impl<'a> While<'a> {
1046
1046
}
1047
1047
}
1048
1048
1049
- impl < ' a > Aml for While < ' a > {
1049
+ impl Aml for While < ' _ > {
1050
1050
fn append_aml_bytes ( & self , bytes : & mut Vec < u8 > ) -> Result < ( ) , AmlError > {
1051
1051
let mut tmp = Vec :: new ( ) ;
1052
1052
self . predicate . append_aml_bytes ( & mut tmp) ?;
@@ -1116,7 +1116,7 @@ impl<'a> MethodCall<'a> {
1116
1116
}
1117
1117
}
1118
1118
1119
- impl < ' a > Aml for MethodCall < ' a > {
1119
+ impl Aml for MethodCall < ' _ > {
1120
1120
fn append_aml_bytes ( & self , bytes : & mut Vec < u8 > ) -> Result < ( ) , AmlError > {
1121
1121
self . name . append_aml_bytes ( bytes) ?;
1122
1122
for arg in self . args . iter ( ) {
@@ -1169,7 +1169,7 @@ impl<'a, T> CreateField<'a, T> {
1169
1169
}
1170
1170
}
1171
1171
1172
- impl < ' a > Aml for CreateField < ' a , u64 > {
1172
+ impl Aml for CreateField < ' _ , u64 > {
1173
1173
fn append_aml_bytes ( & self , bytes : & mut Vec < u8 > ) -> Result < ( ) , AmlError > {
1174
1174
bytes. push ( 0x8f ) ; // CreateQWordFieldOp
1175
1175
self . buffer . append_aml_bytes ( bytes) ?;
@@ -1178,7 +1178,7 @@ impl<'a> Aml for CreateField<'a, u64> {
1178
1178
}
1179
1179
}
1180
1180
1181
- impl < ' a > Aml for CreateField < ' a , u32 > {
1181
+ impl Aml for CreateField < ' _ , u32 > {
1182
1182
fn append_aml_bytes ( & self , bytes : & mut Vec < u8 > ) -> Result < ( ) , AmlError > {
1183
1183
bytes. push ( 0x8a ) ; // CreateDWordFieldOp
1184
1184
self . buffer . append_aml_bytes ( bytes) ?;
0 commit comments