Merge MutableAppContext into AppContext
There may have been a good reason for the difference at some point, or I was still learning Rust. But now it's just &mut AppContext vs &AppContext.
This commit is contained in:
parent
dd00966cc6
commit
de9bf6dfbd
112 changed files with 882 additions and 1041 deletions
|
@ -2,7 +2,7 @@ use fuzzy::{match_strings, StringMatch, StringMatchCandidate};
|
|||
use gpui::{
|
||||
actions,
|
||||
elements::{ChildView, Element as _, Label},
|
||||
AnyViewHandle, Entity, MutableAppContext, View, ViewContext, ViewHandle,
|
||||
AnyViewHandle, Entity, AppContext, View, ViewContext, ViewHandle,
|
||||
};
|
||||
use picker::{Picker, PickerDelegate};
|
||||
use settings::{settings_file::SettingsFile, BaseKeymap, Settings};
|
||||
|
@ -16,7 +16,7 @@ pub struct BaseKeymapSelector {
|
|||
|
||||
actions!(welcome, [ToggleBaseKeymapSelector]);
|
||||
|
||||
pub fn init(cx: &mut MutableAppContext) {
|
||||
pub fn init(cx: &mut AppContext) {
|
||||
Picker::<BaseKeymapSelector>::init(cx);
|
||||
cx.add_action({
|
||||
move |workspace, _: &ToggleBaseKeymapSelector, cx| BaseKeymapSelector::toggle(workspace, cx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue