Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit af6fdee

Browse files
committed
Name trait function variables
According to depreciation from rust-lang/rfcs#1685
1 parent d17db49 commit af6fdee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

enum-map/src/internal.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ pub trait Internal<V>: Sized {
1717
/// Representation of an enum map for type `V`, usually an array.
1818
type Array;
1919
#[doc(hidden)]
20-
fn slice(&Self::Array) -> &[V];
20+
fn slice(array: &Self::Array) -> &[V];
2121
#[doc(hidden)]
22-
fn slice_mut(&mut Self::Array) -> &mut [V];
22+
fn slice_mut(array: &mut Self::Array) -> &mut [V];
2323
#[doc(hidden)]
24-
fn from_usize(usize) -> Self;
24+
fn from_usize(value: usize) -> Self;
2525
#[doc(hidden)]
2626
fn to_usize(self) -> usize;
2727
#[doc(hidden)]
28-
fn from_function<F: FnMut(Self) -> V>(F) -> Self::Array;
28+
fn from_function<F: FnMut(Self) -> V>(f: F) -> Self::Array;
2929
}
3030

3131
impl<T> Internal<T> for bool {

0 commit comments

Comments
 (0)