From 1fe81cea4a0ce383e57250044e7b3e1622380df6 Mon Sep 17 00:00:00 2001 From: Niklas Elsbrock Date: Sun, 14 Aug 2022 00:24:14 +0200 Subject: [PATCH] replace struct name with `Self` where applicable --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c8d8c0e..d1527d7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -48,8 +48,8 @@ pub struct Accumulate { } impl Accumulate { - fn new(iter: I, acc: B, f: F) -> Accumulate { - Accumulate { iter, acc, f } + fn new(iter: I, acc: B, f: F) -> Self { + Self { iter, acc, f } } }