Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
itome committed Apr 25, 2024
1 parent 1ed4db4 commit 94244ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/inspector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ impl Component for InspectorComponent {
},
);

self.state.opened = session.opened_widget_value_ids.clone();
self.state.selected = session.selected_widget_value_id.clone();
self.state.opened.clone_from(&session.opened_widget_value_ids);
self.state.selected.clone_from(&session.selected_widget_value_id);
if let Some(selected_widget_value_id) = session.selected_widget_value_id.as_ref() {
*self.state.selected_mut() = Some(selected_widget_value_id.clone());
}
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ impl<'a> StatefulWidgetRef for Tree<'a> {
continue;
}
if indent_rest > span.width() {
indent_rest = indent_rest - span.width();
indent_rest -= span.width();
continue;
}

Expand Down

0 comments on commit 94244ed

Please sign in to comment.