diff options
Diffstat (limited to 'src/makefile')
-rw-r--r-- | src/makefile/input.rs | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/makefile/input.rs b/src/makefile/input.rs index 42187f4..2b85376 100644 --- a/src/makefile/input.rs +++ b/src/makefile/input.rs @@ -87,21 +87,25 @@ fn inference_match<'a>( } } -struct LineNumbers<T, E: StdError + Send + Sync + 'static, Inner: Iterator<Item = Result<T, E>>>( - Inner, - usize, -); - -impl<T, E: StdError + Send + Sync + 'static, Inner: Iterator<Item = Result<T, E>>> - LineNumbers<T, E, Inner> +struct LineNumbers<T, E, Inner>(Inner, usize) +where + E: StdError + Send + Sync + 'static, + Inner: Iterator<Item = Result<T, E>>; + +impl<T, E, Inner> LineNumbers<T, E, Inner> +where + E: StdError + Send + Sync + 'static, + Inner: Iterator<Item = Result<T, E>>, { fn new(inner: Inner) -> Self { Self(inner, 0) } } -impl<T, E: StdError + Send + Sync + 'static, Inner: Iterator<Item = Result<T, E>>> Iterator - for LineNumbers<T, E, Inner> +impl<T, E, Inner> Iterator for LineNumbers<T, E, Inner> +where + E: StdError + Send + Sync + 'static, + Inner: Iterator<Item = Result<T, E>>, { type Item = (usize, Result<T>); |