From caca330995604e7bfcb88f8af56d66396d1cd1da Mon Sep 17 00:00:00 2001 From: Jameson Ernst Date: Sun, 1 Mar 2015 12:41:13 -0800 Subject: [PATCH] Fix deprecated closure syntax --- src/structs/dvec_macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structs/dvec_macros.rs b/src/structs/dvec_macros.rs index 2624d7b8..79d6fc05 100644 --- a/src/structs/dvec_macros.rs +++ b/src/structs/dvec_macros.rs @@ -106,7 +106,7 @@ macro_rules! dvec_impl( /// Builds a vector filled with random values. #[inline] pub fn new_random(dim: usize) -> $dvec { - $dvec::from_fn(dim, |&: _| rand::random()) + $dvec::from_fn(dim, |_| rand::random()) } }