瀏覽代碼

remove unused lifetime from forward_val_assign

Josh Stone 7 年之前
父節點
當前提交
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);