@@ -19,7 +19,7 @@ pub enum LoadableConstantPoolValueInner<'a> {
1919 Dynamic ( <raw:: RawDynamic as CpEntry < ' a > >:: Entry ) ,
2020}
2121
22- impl < ' a > LoadableConstantPoolValueInner < ' a > {
22+ impl LoadableConstantPoolValueInner < ' _ > {
2323 pub fn into_owned ( self ) -> LoadableConstantPoolValueInner < ' static > {
2424 match self {
2525 LoadableConstantPoolValueInner :: Integer ( val) => {
@@ -57,7 +57,7 @@ pub struct LoadableConstantPoolValue<'a> {
5757 pub value : LoadableConstantPoolValueInner < ' a > ,
5858}
5959
60- impl < ' a > LoadableConstantPoolValue < ' a > {
60+ impl LoadableConstantPoolValue < ' _ > {
6161 pub fn into_owned ( self ) -> LoadableConstantPoolValue < ' static > {
6262 LoadableConstantPoolValue {
6363 index : self . index ,
@@ -74,7 +74,7 @@ pub struct FieldRefEntry<'a> {
7474 pub name_and_type : <raw:: RawNameAndType as super :: CpEntry < ' a > >:: Entry ,
7575}
7676
77- impl < ' a > FieldRefEntry < ' a > {
77+ impl FieldRefEntry < ' _ > {
7878 pub fn into_owned ( self ) -> FieldRefEntry < ' static > {
7979 FieldRefEntry {
8080 class_index : self . class_index ,
@@ -155,7 +155,7 @@ pub enum ReferenceEntry<'a> {
155155 MethodRef ( <raw:: RawMethodRef as CpEntry < ' a > >:: Entry ) ,
156156}
157157
158- impl < ' a > ReferenceEntry < ' a > {
158+ impl ReferenceEntry < ' _ > {
159159 pub fn into_owned ( self ) -> ReferenceEntry < ' static > {
160160 match self {
161161 ReferenceEntry :: FieldRef ( field) => ReferenceEntry :: FieldRef ( field. into_owned ( ) ) ,
@@ -178,7 +178,7 @@ impl Debug for ClassNameEntry<'_> {
178178 }
179179}
180180
181- impl < ' a > ClassNameEntry < ' a > {
181+ impl ClassNameEntry < ' _ > {
182182 pub fn into_owned ( self ) -> ClassNameEntry < ' static > {
183183 ClassNameEntry {
184184 name_index : self . name_index ,
@@ -194,7 +194,7 @@ pub struct MethodHandleEntry<'a> {
194194 pub reference : ReferenceEntry < ' a > ,
195195}
196196
197- impl < ' a > MethodHandleEntry < ' a > {
197+ impl MethodHandleEntry < ' _ > {
198198 pub fn into_owned ( self ) -> MethodHandleEntry < ' static > {
199199 MethodHandleEntry {
200200 reference_kind : self . reference_kind ,
@@ -213,7 +213,7 @@ pub struct MethodRefEntry<'a> {
213213 pub name_and_type : <raw:: RawNameAndType as CpEntry < ' a > >:: Entry ,
214214}
215215
216- impl < ' a > MethodRefEntry < ' a > {
216+ impl MethodRefEntry < ' _ > {
217217 pub fn into_owned ( self ) -> MethodRefEntry < ' static > {
218218 MethodRefEntry {
219219 is_interface : self . is_interface ,
@@ -242,7 +242,7 @@ impl Debug for NameAndTypeEntry<'_> {
242242 }
243243}
244244
245- impl < ' a > NameAndTypeEntry < ' a > {
245+ impl NameAndTypeEntry < ' _ > {
246246 pub fn into_owned ( self ) -> NameAndTypeEntry < ' static > {
247247 NameAndTypeEntry {
248248 name_index : self . name_index ,
@@ -260,7 +260,7 @@ pub struct InvokeDynamicEntry<'a> {
260260 pub name_and_type : <raw:: RawNameAndType as CpEntry < ' a > >:: Entry ,
261261}
262262
263- impl < ' a > InvokeDynamicEntry < ' a > {
263+ impl InvokeDynamicEntry < ' _ > {
264264 pub fn into_owned ( self ) -> InvokeDynamicEntry < ' static > {
265265 InvokeDynamicEntry {
266266 bootstrap_method_attr_index : self . bootstrap_method_attr_index ,
@@ -277,7 +277,7 @@ pub struct DynamicEntry<'a> {
277277 pub name_and_type : <raw:: RawNameAndType as CpEntry < ' a > >:: Entry ,
278278}
279279
280- impl < ' a > DynamicEntry < ' a > {
280+ impl DynamicEntry < ' _ > {
281281 pub fn into_owned ( self ) -> DynamicEntry < ' static > {
282282 DynamicEntry {
283283 bootstrap_method_attr_index : self . bootstrap_method_attr_index ,
@@ -386,9 +386,9 @@ pub mod raw {
386386
387387 #[ inline]
388388 fn handle ( _: & ConstantPool , args : Self :: HandleArgs ) -> Self :: Entry {
389- let high = ( args. 0 as u64 ) << 32 ;
389+ let high = u64 :: from ( args. 0 ) << 32 ;
390390 let low = args. 1 ;
391- f64:: from_bits ( high | low as u64 )
391+ f64:: from_bits ( high | u64:: from ( low ) )
392392 }
393393 }
394394
0 commit comments