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
pull/5185/head
Pascal Kuthe 2 years ago committed by Michael Davis
parent 70887b7378
commit e83ce72240

@ -184,7 +184,7 @@ impl<'de> serde::de::Visitor<'de> for KeyTrieVisitor {
S: serde::de::SeqAccess<'de>, S: serde::de::SeqAccess<'de>,
{ {
let mut commands = Vec::new(); let mut commands = Vec::new();
while let Some(command) = seq.next_element::<&str>()? { while let Some(command) = seq.next_element::<String>()? {
commands.push( commands.push(
command command
.parse::<MappableCommand>() .parse::<MappableCommand>()

Loading…
Cancel
Save