Skip to content

Commit a7fb8e5

Browse files
committed
fix clippy::wrong-self-convention
1 parent c47ba16 commit a7fb8e5

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
lines changed

src/keyframes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ use crate::Timeline;
2828
#[macro_export]
2929
macro_rules! chain{
3030
($id:expr) => {
31-
$id.clone().to_chain()
31+
$id.clone().into_chain()
3232
};
3333
($id:expr, $($x:expr),+ $(,)?) => {
34-
$id.clone().to_chain_with_children(vec![$($x),+])
34+
$id.clone().into_chain_with_children(vec![$($x),+])
3535
};
3636
}
3737

src/keyframes/button.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ impl Id {
2121
Self(widget::Id::unique())
2222
}
2323

24-
pub fn to_chain(self) -> Chain {
24+
pub fn into_chain(self) -> Chain {
2525
Chain::new(self)
2626
}
2727

28-
pub fn to_chain_with_children(self, children: Vec<Button>) -> Chain {
28+
pub fn into_chain_with_children(self, children: Vec<Button>) -> Chain {
2929
Chain::with_children(self, children)
3030
}
3131

src/keyframes/column.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ impl Id {
2121
Self(widget::Id::unique())
2222
}
2323

24-
pub fn to_chain(self) -> Chain {
24+
pub fn into_chain(self) -> Chain {
2525
Chain::new(self)
2626
}
2727

28-
pub fn to_chain_with_children(self, children: Vec<Column>) -> Chain {
28+
pub fn into_chain_with_children(self, children: Vec<Column>) -> Chain {
2929
Chain::with_children(self, children)
3030
}
3131

src/keyframes/container.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ impl Id {
2121
Self(widget::Id::unique())
2222
}
2323

24-
pub fn to_chain(self) -> Chain {
24+
pub fn into_chain(self) -> Chain {
2525
Chain::new(self)
2626
}
2727

28-
pub fn to_chain_with_children(self, children: Vec<Container>) -> Chain {
28+
pub fn into_chain_with_children(self, children: Vec<Container>) -> Chain {
2929
Chain::with_children(self, children)
3030
}
3131

src/keyframes/row.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ impl Id {
2121
Self(widget::Id::unique())
2222
}
2323

24-
pub fn to_chain(self) -> Chain {
24+
pub fn into_chain(self) -> Chain {
2525
Chain::new(self)
2626
}
2727

28-
pub fn to_chain_with_children(self, children: Vec<Row>) -> Chain {
28+
pub fn into_chain_with_children(self, children: Vec<Row>) -> Chain {
2929
Chain::with_children(self, children)
3030
}
3131

src/keyframes/space.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ impl Id {
2121
Self(widget::Id::unique())
2222
}
2323

24-
pub fn to_chain(self) -> Chain {
24+
pub fn into_chain(self) -> Chain {
2525
Chain::new(self)
2626
}
2727

28-
pub fn to_chain_with_children(self, children: Vec<Space>) -> Chain {
28+
pub fn into_chain_with_children(self, children: Vec<Space>) -> Chain {
2929
Chain::with_children(self, children)
3030
}
3131

src/keyframes/style_button.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ impl Id {
2222
Self(widget::Id::unique())
2323
}
2424

25-
pub fn to_chain(self) -> Chain {
25+
pub fn into_chain(self) -> Chain {
2626
Chain::new(self)
2727
}
2828

29-
pub fn to_chain_with_children(self, children: Vec<StyleButton>) -> Chain {
29+
pub fn into_chain_with_children(self, children: Vec<StyleButton>) -> Chain {
3030
Chain::with_children(self, children)
3131
}
3232

src/keyframes/style_container.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ impl Id {
2222
Self(widget::Id::unique())
2323
}
2424

25-
pub fn to_chain(self) -> Chain {
25+
pub fn into_chain(self) -> Chain {
2626
Chain::new(self)
2727
}
2828

29-
pub fn to_chain_with_children(self, children: Vec<StyleContainer>) -> Chain {
29+
pub fn into_chain_with_children(self, children: Vec<StyleContainer>) -> Chain {
3030
Chain::with_children(self, children)
3131
}
3232

src/keyframes/toggler.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ impl Id {
2121
Self(widget::Id::unique())
2222
}
2323

24-
pub fn to_chain(self) -> Chain {
24+
pub fn into_chain(self) -> Chain {
2525
Chain::new(self)
2626
}
2727

28-
pub fn to_chain_with_children(self, children: Vec<Toggler>) -> Chain {
28+
pub fn into_chain_with_children(self, children: Vec<Toggler>) -> Chain {
2929
Chain::with_children(self, children)
3030
}
3131
}

0 commit comments

Comments
 (0)