From 42c01c5b1011f1fdf8621db9827978e6d6d68a1f Mon Sep 17 00:00:00 2001 From: K Simmons Date: Thu, 11 Aug 2022 11:35:11 -0700 Subject: [PATCH] minor rustfmt fix --- crates/gpui/src/presenter.rs | 8 ++++---- crates/project_panel/src/project_panel.rs | 4 +++- styles/package-lock.json | 1 + 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/crates/gpui/src/presenter.rs b/crates/gpui/src/presenter.rs index 1556572816..023e013d13 100644 --- a/crates/gpui/src/presenter.rs +++ b/crates/gpui/src/presenter.rs @@ -491,24 +491,24 @@ impl<'a> LayoutContext<'a> { if layout_parent != app_parent { panic!( "View {} was laid out with parent {} when it was constructed with parent {}", - print_error(view_id), + print_error(view_id), print_error(*layout_parent), print_error(*app_parent)) } } (None, Some(ParentId::View(app_parent))) => panic!( "View {} was laid out without a parent when it was constructed with parent {}", - print_error(view_id), + print_error(view_id), print_error(*app_parent) ), (Some(layout_parent), Some(ParentId::Root)) => panic!( "View {} was laid out with parent {} when it was constructed as a window root", - print_error(view_id), + print_error(view_id), print_error(*layout_parent), ), (_, None) => panic!( "View {} did not have a registered parent in the app context", - print_error(view_id), + print_error(view_id), ), _ => {} } diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs index f077520d72..702c750ea2 100644 --- a/crates/project_panel/src/project_panel.rs +++ b/crates/project_panel/src/project_panel.rs @@ -757,7 +757,9 @@ impl ProjectPanel { fn index_for_selection(&self, selection: Selection) -> Option<(usize, usize, usize)> { let mut entry_index = 0; let mut visible_entries_index = 0; - for (worktree_index, (worktree_id, worktree_entries)) in self.visible_entries.iter().enumerate() { + for (worktree_index, (worktree_id, worktree_entries)) in + self.visible_entries.iter().enumerate() + { if *worktree_id == selection.worktree_id { for entry in worktree_entries { if entry.id == selection.entry_id { diff --git a/styles/package-lock.json b/styles/package-lock.json index 5499f1852c..582f1c8496 100644 --- a/styles/package-lock.json +++ b/styles/package-lock.json @@ -5,6 +5,7 @@ "requires": true, "packages": { "": { + "name": "styles", "version": "1.0.0", "license": "ISC", "dependencies": {