Re-implement actions as derive macros instead of blanket impls

This commit is contained in:
Mikayla
2023-11-16 17:32:02 -08:00
parent a0e976599c
commit 4de2c0f7ef
22 changed files with 360 additions and 288 deletions
+2 -2
View File
@@ -73,9 +73,9 @@ impl KeymapFile {
"Expected first item in array to be a string."
)));
};
gpui::build_action(&name, Some(data))
cx.build_action(&name, Some(data))
}
Value::String(name) => gpui::build_action(&name, None),
Value::String(name) => cx.build_action(&name, None),
Value::Null => Ok(no_action()),
_ => {
return Some(Err(anyhow!("Expected two-element array, got {action:?}")))