refactor: impl method returns Self

This commit is contained in:
EdJoPaTo
2021-04-01 09:05:05 +02:00
parent d5798982d1
commit cf31797e86
4 changed files with 26 additions and 26 deletions
+2 -2
View File
@@ -20,8 +20,8 @@ struct App<'a> {
}
impl<'a> App<'a> {
fn new() -> App<'a> {
App {
fn new() -> Self {
Self {
tree: StatefulTree::with_items(vec![
TreeItem::new_leaf("a"),
TreeItem::new(