Skip to content

Commit 5d0d6df

Browse files
committed
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
1 parent c546883 commit 5d0d6df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helix-term/src/keymap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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>()

0 commit comments

Comments
 (0)