Эх сурвалжийг харах

remove unused lifetime from forward_val_assign

Josh Stone 7 жил өмнө
parent
commit
952dba4e06
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      bigint/src/macros.rs

+ 2 - 2
bigint/src/macros.rs

@@ -107,7 +107,7 @@ macro_rules! forward_ref_ref_binop_commutative {
 
 macro_rules! forward_val_assign {
     (impl $imp:ident for $res:ty, $method:ident) => {
-        impl<'a> $imp<$res> for $res {
+        impl $imp<$res> for $res {
             #[inline]
             fn $method(&mut self, other: $res) {
                 self.$method(&other);
@@ -117,7 +117,7 @@ macro_rules! forward_val_assign {
 }
 macro_rules! forward_val_assign_scalar {
     (impl $imp:ident for $res:ty, $scalar:ty, $method:ident) => {
-        impl<'a> $imp<$res> for $scalar {
+        impl $imp<$res> for $scalar {
             #[inline]
             fn $method(&mut self, other: $res) {
                 self.$method(&other);