Skip to content

Commit 165c52a

Browse files
claudesinelaw
authored andcommitted
style: cargo fmt workspace.rs (wrap long WindowId signatures)
Formatting only. https://claude.ai/code/session_01R6SPCEgzj4HWZBSe2VZPZM
1 parent ca2bf0b commit 165c52a

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

crates/fresh-editor/src/app/workspace.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,11 @@ impl Editor {
17241724
///
17251725
/// This is a transient internal redirect — it deliberately does NOT
17261726
/// fire `active_window_changed` hooks (unlike `set_active_window`).
1727-
fn with_active_window<R>(&mut self, id: fresh_core::WindowId, f: impl FnOnce(&mut Self) -> R) -> R {
1727+
fn with_active_window<R>(
1728+
&mut self,
1729+
id: fresh_core::WindowId,
1730+
f: impl FnOnce(&mut Self) -> R,
1731+
) -> R {
17281732
let prev = self.active_window;
17291733
self.active_window = id;
17301734
let result = f(self);
@@ -1738,7 +1742,10 @@ impl Editor {
17381742
}
17391743

17401744
/// Restore a specific window's workspace from disk.
1741-
pub fn restore_workspace_for(&mut self, id: fresh_core::WindowId) -> Result<bool, WorkspaceError> {
1745+
pub fn restore_workspace_for(
1746+
&mut self,
1747+
id: fresh_core::WindowId,
1748+
) -> Result<bool, WorkspaceError> {
17421749
self.with_active_window(id, |e| e.try_restore_workspace())
17431750
}
17441751

0 commit comments

Comments
 (0)