gpui: Reduce manual shifting & other minor improvements (#34407)
Minor cleanup in gpui. - Reduce manual shifting by using `u32::to_be_bytes` - Remove eager `Vec` allocation when listing registered actions - Remove unnecessary return statements - Replace manual `if let Some(_)` with `.as_deref_mut()` Release Notes: - N/A
This commit is contained in:
parent
05065985e7
commit
d1abba0d33
5 changed files with 12 additions and 25 deletions
|
@ -1391,7 +1391,6 @@ fn dump_all_gpui_actions() {
|
|||
documentation: Option<&'static str>,
|
||||
}
|
||||
let mut actions = gpui::generate_list_of_all_registered_actions()
|
||||
.into_iter()
|
||||
.map(|action| ActionDef {
|
||||
name: action.name,
|
||||
human_name: command_palette::humanize_action_name(action.name),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue