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
commite83ce7224063afc52d44f9c2b68e3c5a03412f5c
authorPascal Kuthe <pascal.kuthe@semimod.de>
dateTue 24 Jan 2023, 19:30 (4 years ago)
parent70887b7
helix-term/src/keymap.rs+1−1
@@ -184,7 +184,7 @@ impl<'de> serde::de::Visitor<'de> for KeyTrieVisitor {
184184 S: serde::de::SeqAccess<'de>,
185185 {
186186 let mut commands = Vec::new();
187− while let Some(command) = seq.next_element::<&str>()? {
187+ while let Some(command) = seq.next_element::<String>()? {
188188 commands.push(
189189 command
190190 .parse::<MappableCommand>()