Apply lints and cleanup to Rust code

This commit is contained in:
Keavon Chambers
2023-01-29 03:01:57 -08:00
parent 0d8be71426
commit 6eafeaaecc
27 changed files with 122 additions and 119 deletions
@@ -164,7 +164,7 @@ impl Layout {
// Simply diff the internal layout
(Self::WidgetLayout(current), Self::WidgetLayout(new)) => current.diff(new, widget_path, widget_diffs),
(current, Self::WidgetLayout(widget_layout)) => {
// Upate current to the new value
// Update current to the new value
*current = Self::WidgetLayout(widget_layout.clone());
// Push an update sublayout value
@@ -179,7 +179,7 @@ impl Layout {
impl Default for Layout {
fn default() -> Self {
Layout::WidgetLayout(WidgetLayout::default())
Self::WidgetLayout(WidgetLayout::default())
}
}