Skip to content

Commit

Permalink
remove an unused pattern from saturating_impl
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Jun 11, 2020
1 parent 86c3126 commit 5f00e22
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/ops/saturating.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5f00e22

Please sign in to comment.