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 {