Skip to content

Commit

Permalink
FIX: Use where clauses in Zip's regular methods
Browse files Browse the repository at this point in the history
Easier to read in rustdoc.
  • Loading branch information
bluss committed Nov 24, 2018
1 parent e64eaf3 commit 3464fe0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/zip/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,10 @@ macro_rules! map_impl {
($([$notlast:ident $($p:ident)*],)+) => {
$(
#[allow(non_snake_case)]
impl<D: Dimension, $($p: NdProducer<Dim=D>),*> Zip<($($p,)*), D> {
impl<D, $($p),*> Zip<($($p,)*), D>
where D: Dimension,
$($p: NdProducer<Dim=D> ,)*
{
/// Apply a function to all elements of the input arrays,
/// visiting elements in lock step.
pub fn apply<F>(mut self, mut function: F)
Expand Down

0 comments on commit 3464fe0

Please sign in to comment.