Merge pull request #20718 from tshepang/bench-fix-some-warnings
bench: fix a few compiler warnings Reviewed-by: alexcrichton
This commit is contained in:
commit
e72ad98e46
19 changed files with 14 additions and 43 deletions
|
|
@ -229,7 +229,7 @@ unsafe impl<T: 'static> Send for Racy<T> {}
|
|||
|
||||
/// Executes a closure in parallel over the given iterator over mutable slice.
|
||||
/// The closure `f` is run in parallel with an element of `iter`.
|
||||
fn parallel<'a, I, T, F>(mut iter: I, f: F)
|
||||
fn parallel<'a, I, T, F>(iter: I, f: F)
|
||||
where T: 'a+Send + Sync,
|
||||
I: Iterator<Item=&'a mut [T]>,
|
||||
F: Fn(&mut [T]) + Sync {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue