diff --git a/gpui/src/app.rs b/gpui/src/app.rs index 72b9bbd2f6f0d168cff8edea975662eaf61acd1c..4a143d353b5c81d5f930e80f6260712212ace0e5 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 55a3bfa931b3804ac81726361a20c5e1f81e39b5..54e5f11f2c3d6be95b43051906db1f5f33fba006 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));