mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 19:03:30 +04:00
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
This commit is contained in:
parent
70887b7378
commit
e83ce72240
@ -184,7 +184,7 @@ fn visit_seq<S>(self, mut seq: S) -> Result<Self::Value, S::Error>
|
||||
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>()
|
||||
|
Loading…
Reference in New Issue
Block a user