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

remove an unused pattern from saturating_impl

Josh Stone 4 жил өмнө
parent
commit
5f00e22314
1 өөрчлөгдсөн 0 нэмэгдсэн , 8 устгасан
  1. 0 8
      src/ops/saturating.rs

+ 0 - 8
src/ops/saturating.rs

@@ -41,14 +41,6 @@ macro_rules! saturating_impl {
             }
         }
     };
-    ($trait_name:ident, $method:ident, $t:ty, $rhs:ty) => {
-        impl $trait_name<$rhs> for $t {
-            #[inline]
-            fn $method(&self, v: &$rhs) -> Self {
-                <$t>::$method(*self, *v)
-            }
-        }
-    };
 }
 
 /// Performs addition that saturates at the numeric bounds instead of overflowing.