From aa39b2b6ad79e179489f80d6334b070536b2b9d5 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sat, 5 Jun 2021 21:49:36 +0100 Subject: [PATCH] Make to_raw take self by value rather than reference --- agb/src/number.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb/src/number.rs b/agb/src/number.rs index 46522e2b..588e7f75 100644 --- a/agb/src/number.rs +++ b/agb/src/number.rs @@ -208,7 +208,7 @@ impl Num { Num(n) } - pub fn to_raw(&self) -> I { + pub fn to_raw(self) -> I { self.0 }