From b7d57eb6f5fa073843976fb8a5a3f2cbf1561f48 Mon Sep 17 00:00:00 2001 From: Niklas Elsbrock Date: Sun, 14 Aug 2022 00:21:48 +0200 Subject: [PATCH] realign `impl`s --- src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 3e43163..c8d8c0e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -47,6 +47,12 @@ pub struct Accumulate { f: F, } +impl Accumulate { + fn new(iter: I, acc: B, f: F) -> Accumulate { + Accumulate { iter, acc, f } + } +} + impl fmt::Debug for Accumulate where I: fmt::Debug, @@ -60,12 +66,6 @@ where } } -impl Accumulate { - fn new(iter: I, acc: B, f: F) -> Accumulate { - Accumulate { iter, acc, f } - } -} - impl Iterator for Accumulate where I: Iterator,