mirror of
https://github.com/nelsbrock/iter_accumulate.git
synced 2026-08-14 22:16:48 +02:00
replace struct name with Self where applicable
This commit is contained in:
+2
-2
@@ -48,8 +48,8 @@ pub struct Accumulate<I, B, F> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl<I, B, F> Accumulate<I, B, F> {
|
impl<I, B, F> Accumulate<I, B, F> {
|
||||||
fn new(iter: I, acc: B, f: F) -> Accumulate<I, B, F> {
|
fn new(iter: I, acc: B, f: F) -> Self {
|
||||||
Accumulate { iter, acc, f }
|
Self { iter, acc, f }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user