mirror of
https://github.com/nelsbrock/iter_accumulate.git
synced 2026-08-14 14:12:12 +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> {
|
||||
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 }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user