Fix deprecated closure syntax

This commit is contained in:
Jameson Ernst 2015-03-01 12:41:13 -08:00
parent 744e9782fc
commit caca330995

View File

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