Skip to content

Commit ff16d4a

Browse files
committed
Change to Self syntax
1 parent ab41505 commit ff16d4a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

rust/src/recalc/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ where
1919
Value: AbstractMonoid<BinOp> + Clone,
2020
BinOp: Operator,
2121
{
22-
fn new() -> ReCalc<Value, BinOp> {
23-
ReCalc {
22+
fn new() -> Self {
23+
Self {
2424
stack: VecDeque::new(),
2525
op: PhantomData,
2626
}

rust/src/soe/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ where
2020
Value: AbstractGroup<BinOp> + Clone,
2121
BinOp: Operator,
2222
{
23-
fn new() -> SoE<Value, BinOp> {
24-
SoE {
23+
fn new() -> Self {
24+
Self {
2525
stack: VecDeque::new(),
2626
agg: Value::identity(),
2727
op: PhantomData,

rust/src/two_stacks/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ where
2828
Value: AbstractMonoid<BinOp> + Clone,
2929
BinOp: Operator,
3030
{
31-
fn new() -> TwoStacks<Value, BinOp> {
32-
TwoStacks {
31+
fn new() -> Self {
32+
Self {
3333
front: Vec::new(),
3434
back: Vec::new(),
3535
op: PhantomData,

0 commit comments

Comments
 (0)