Convert keymap context to use generics and Cow<'static> so we don't have to add .to_string() and .into() for each usage
This commit is contained in:
parent
ffe53bed87
commit
9004640586
13 changed files with 97 additions and 93 deletions
|
@ -1314,7 +1314,7 @@ impl View for ProjectPanel {
|
|||
|
||||
fn keymap_context(&self, _: &AppContext) -> KeymapContext {
|
||||
let mut cx = Self::default_keymap_context();
|
||||
cx.set.insert("menu".into());
|
||||
cx.add_identifier("menu");
|
||||
cx
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue