Update checked.rs

This commit is contained in:
LEXUGE 2018-04-05 19:11:47 +08:00 committed by GitHub
parent edd7c4ec85
commit 42b2ef81c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ macro_rules! checked_abs_impl {
($t:ty) => {
impl CheckedAbs for $t {
#[inline]
fn checked_abs(self) -> Option<$t> {
fn checked_abs(&self) -> Option<$t> {
<$t>::checked_abs(*self)
}
}