From 42b2ef81c0c534f671f05d8d5e2ab37939f2e30e Mon Sep 17 00:00:00 2001 From: LEXUGE Date: Thu, 5 Apr 2018 19:11:47 +0800 Subject: [PATCH] Update checked.rs --- src/ops/checked.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ops/checked.rs b/src/ops/checked.rs index a61215b..1456228 100644 --- a/src/ops/checked.rs +++ b/src/ops/checked.rs @@ -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) } }