replace struct name with Self where applicable

This commit is contained in:
2022-08-14 00:24:14 +02:00
parent b7d57eb6f5
commit 1fe81cea4a
+2 -2
View File
@@ -48,8 +48,8 @@ pub struct Accumulate<I, B, F> {
}
impl<I, B, F> Accumulate<I, B, F> {
fn new(iter: I, acc: B, f: F) -> Accumulate<I, B, F> {
Accumulate { iter, acc, f }
fn new(iter: I, acc: B, f: F) -> Self {
Self { iter, acc, f }
}
}