on master help sign in
refactor: don't deserialize &str from toml
e83ce72Pascal Kuthe
helix-term/src/keymap.rs+1−1
@@ -184,7 +184,7 @@ impl<'de> serde::de::Visitor<'de> for KeyTrieVisitor {
184 S: serde::de::SeqAccess<'de>,
184 S: serde::de::SeqAccess<'de>,
185 {
185 {
186 let mut commands = Vec::new();
186 let mut commands = Vec::new();
187− while let Some(command) = seq.next_element::<&str>()? {
187+ while let Some(command) = seq.next_element::<String>()? {
188 commands.push(
188 commands.push(
189 command
189 command
190 .parse::<MappableCommand>()
190 .parse::<MappableCommand>()