Fix deprecated closure syntax

This commit is contained in:
Jameson Ernst 2015-03-01 12:41:13 -08:00
parent 744e9782fc
commit caca330995
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ macro_rules! dvec_impl(
/// Builds a vector filled with random values.
#[inline]
pub fn new_random(dim: usize) -> $dvec<N> {
$dvec::from_fn(dim, |&: _| rand::random())
$dvec::from_fn(dim, |_| rand::random())
}
}