formatting fixes

Keith Simmons created

Change summary

crates/file_finder/src/file_finder.rs       | 3 ++-
crates/theme_selector/src/theme_selector.rs | 6 ++++--
crates/workspace/src/workspace.rs           | 9 ++++++---
3 files changed, 12 insertions(+), 6 deletions(-)

Detailed changes

crates/file_finder/src/file_finder.rs 🔗

@@ -76,7 +76,8 @@ impl View for FileFinder {
                 Container::new(
                     Flex::new(Axis::Vertical)
                         .with_child(
-                            ChildView::new(&self.query_editor).contained()
+                            ChildView::new(&self.query_editor)
+                                .contained()
                                 .with_style(settings.theme.selector.input_editor.container)
                                 .boxed(),
                         )

crates/theme_selector/src/theme_selector.rs 🔗

@@ -218,7 +218,8 @@ impl ThemeSelector {
             ))
         };
 
-        self.selected_index = self.selected_index
+        self.selected_index = self
+            .selected_index
             .min(self.matches.len().saturating_sub(1));
 
         cx.notify();
@@ -341,7 +342,8 @@ impl View for ThemeSelector {
                 Container::new(
                     Flex::new(Axis::Vertical)
                         .with_child(
-                            ChildView::new(&self.query_editor).contained()
+                            ChildView::new(&self.query_editor)
+                                .contained()
                                 .with_style(settings.theme.selector.input_editor.container)
                                 .boxed(),
                         )

crates/workspace/src/workspace.rs 🔗

@@ -755,7 +755,11 @@ impl Workspace {
     }
 
     // Returns the model that was toggled closed if it was open
-    pub fn toggle_modal<V, F>(&mut self, cx: &mut ViewContext<Self>, add_view: F) -> Option<ViewHandle<V>>
+    pub fn toggle_modal<V, F>(
+        &mut self,
+        cx: &mut ViewContext<Self>,
+        add_view: F,
+    ) -> Option<ViewHandle<V>>
     where
         V: 'static + View,
         F: FnOnce(&mut ViewContext<Self>, &mut Self) -> ViewHandle<V>,
@@ -763,8 +767,7 @@ impl Workspace {
         cx.notify();
         // Whatever modal was visible is getting clobbered. If its the same type as V, then return
         // it. Otherwise, create a new modal and set it as active.
-        let already_open_modal = self.modal.take()
-            .and_then(|modal| modal.downcast::<V>());
+        let already_open_modal = self.modal.take().and_then(|modal| modal.downcast::<V>());
         if let Some(already_open_modal) = already_open_modal {
             cx.focus_self();
             Some(already_open_modal)