Skip to content

Commit 96e96ef

Browse files
committed
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).
1 parent 8d4b7b3 commit 96e96ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

traits/src/int.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ pub trait PrimInt
274274
///
275275
/// assert_eq!(2i32.pow(4), 16);
276276
/// ```
277-
fn pow(self, mut exp: u32) -> Self;
277+
fn pow(self, exp: u32) -> Self;
278278
}
279279

280280
macro_rules! prim_int_impl {

0 commit comments

Comments
 (0)