@@ -126,7 +126,7 @@ fn parse_aggregate_fields(input: &DeriveInput) -> Result<ParsedAggregate> {
126126 . filter ( |attr| attr. path ( ) . is_ident ( "metrics" ) )
127127 . cloned ( )
128128 . collect ( ) ;
129- let has_unit = crate :: RawMetricsFieldAttrs :: from_field ( & crate :: field_to_syn2 ( field) ? )
129+ let has_unit = crate :: RawMetricsFieldAttrs :: from_field ( field)
130130 . ok ( )
131131 . and_then ( |attrs| attrs. unit )
132132 . is_some ( ) ;
@@ -530,7 +530,7 @@ mod tests {
530530
531531 fn aggregate_impl_string ( input : Ts2 ) -> String {
532532 let output = aggregate_impl ( input, false ) ;
533- match syn2 :: parse2 :: < syn2 :: File > ( output. clone ( ) ) {
533+ match syn :: parse2 :: < syn :: File > ( output. clone ( ) ) {
534534 Ok ( file) => prettyplease:: unparse ( & file) ,
535535 Err ( _) => output. to_string ( ) ,
536536 }
@@ -603,7 +603,7 @@ mod tests {
603603 } ;
604604
605605 let output = aggregate_impl ( input, true ) ;
606- let parsed_file = match syn2 :: parse2 :: < syn2 :: File > ( output. clone ( ) ) {
606+ let parsed_file = match syn :: parse2 :: < syn :: File > ( output. clone ( ) ) {
607607 Ok ( file) => prettyplease:: unparse ( & file) ,
608608 Err ( _) => output. to_string ( ) ,
609609 } ;
@@ -622,7 +622,7 @@ mod tests {
622622 } ;
623623
624624 let output = aggregate_impl ( input, false ) ;
625- let parsed_file = match syn2 :: parse2 :: < syn2 :: File > ( output. clone ( ) ) {
625+ let parsed_file = match syn :: parse2 :: < syn :: File > ( output. clone ( ) ) {
626626 Ok ( file) => prettyplease:: unparse ( & file) ,
627627 Err ( _) => output. to_string ( ) ,
628628 } ;
0 commit comments