From af6fdee9ef51f56264e9cb4a89170925d36db738 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Sun, 8 Oct 2017 16:01:42 +0200 Subject: [PATCH] Name trait function variables According to depreciation from rust-lang/rfcs#1685 --- enum-map/src/internal.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/enum-map/src/internal.rs b/enum-map/src/internal.rs index 2f99cd2..f99c00a 100644 --- a/enum-map/src/internal.rs +++ b/enum-map/src/internal.rs @@ -17,15 +17,15 @@ pub trait Internal: Sized { /// Representation of an enum map for type `V`, usually an array. type Array; #[doc(hidden)] - fn slice(&Self::Array) -> &[V]; + fn slice(array: &Self::Array) -> &[V]; #[doc(hidden)] - fn slice_mut(&mut Self::Array) -> &mut [V]; + fn slice_mut(array: &mut Self::Array) -> &mut [V]; #[doc(hidden)] - fn from_usize(usize) -> Self; + fn from_usize(value: usize) -> Self; #[doc(hidden)] fn to_usize(self) -> usize; #[doc(hidden)] - fn from_function V>(F) -> Self::Array; + fn from_function V>(f: F) -> Self::Array; } impl Internal for bool {