summaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorPascal Kuthe2023-01-24 18:30:19 +0000
committerMichael Davis2023-01-24 18:50:46 +0000
commite83ce7224063afc52d44f9c2b68e3c5a03412f5c (patch)
treed097ec3e4700948f2d0de02bb9df362badd3a92e /helix-term/src
parent70887b7378d642226ad5102fbe601fecb225225c (diff)
refactor: don't deserialize &str from toml
The new version of the `toml` crate is based on `toml_edit` and does not support zero copy deserialization anymore. So we need to deserialize `String` instead of `&str` in the keympa
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/keymap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs
index 4a131f0a..416dcd86 100644
--- a/helix-term/src/keymap.rs
+++ b/helix-term/src/keymap.rs
@@ -184,7 +184,7 @@ impl<'de> serde::de::Visitor<'de> for KeyTrieVisitor {
S: serde::de::SeqAccess<'de>,
{
let mut commands = Vec::new();
- while let Some(command) = seq.next_element::<&str>()? {
+ while let Some(command) = seq.next_element::<String>()? {
commands.push(
command
.parse::<MappableCommand>()