diff --git a/gpui/src/app.rs b/gpui/src/app.rs index 72b9bbd2f6..4a143d353b 100644 --- a/gpui/src/app.rs +++ b/gpui/src/app.rs @@ -723,7 +723,7 @@ impl MutableAppContext { if let Some(arg) = arg.downcast_ref() { handler(arg, cx); } else { - log::error!("Could not downcast argument for action {}", name_clone); + log::error!("Could not downcast argument for global action {}", name_clone); } }); diff --git a/zed/src/workspace.rs b/zed/src/workspace.rs index 55a3bfa931..54e5f11f2c 100644 --- a/zed/src/workspace.rs +++ b/zed/src/workspace.rs @@ -511,7 +511,7 @@ impl Workspace { } } - pub fn open_new_file(&mut self, _: &AppState, cx: &mut ViewContext) { + pub fn open_new_file(&mut self, _: &Arc, cx: &mut ViewContext) { let buffer = cx.add_model(|cx| Buffer::new(0, "", cx)); let buffer_view = cx.add_view(|cx| Editor::for_buffer(buffer.clone(), self.settings.clone(), cx));