From 96e96ef7626bb7bcb6474ff78ebb5bf5e0bda5a8 Mon Sep 17 00:00:00 2001 From: bluss Date: Tue, 25 Oct 2016 00:42:44 +0200 Subject: [PATCH] Remove pattern in trait's method signature This use of `mut` was nonsensical for now, but is proposed to be disallowed by rustc in the future (as a bugfix in Rust). --- traits/src/int.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traits/src/int.rs b/traits/src/int.rs index 0cf9e13..4f9221f 100644 --- a/traits/src/int.rs +++ b/traits/src/int.rs @@ -274,7 +274,7 @@ pub trait PrimInt /// /// assert_eq!(2i32.pow(4), 16); /// ``` - fn pow(self, mut exp: u32) -> Self; + fn pow(self, exp: u32) -> Self; } macro_rules! prim_int_impl {