aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 338468c2..758d3c49 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -905,13 +905,13 @@ mod cmd {
},
];
- pub static COMMANDS: Lazy<HashMap<&'static str, Command>> = Lazy::new(|| {
+ pub static COMMANDS: Lazy<HashMap<&'static str, &'static Command>> = Lazy::new(|| {
let mut map = HashMap::new();
for cmd in COMMAND_LIST {
- map.insert(cmd.name, cmd.clone());
+ map.insert(cmd.name, cmd);
if let Some(alias) = cmd.alias {
- map.insert(alias, cmd.clone());
+ map.insert(alias, cmd);
}
}