Fix build after latest rebase

pull/3958/head
Matthew Cheely 1 year ago
parent fb649610eb
commit e652d01e0c

@ -224,13 +224,13 @@ impl<'de> serde::de::Visitor<'de> for KeyTrieVisitor {
Err(serde::de::Error::custom("custom labels are only available for typable commands (the ones starting with ':')"))
}
Some(MappableCommand::Typable { name, args, .. }) if !label.is_empty() => {
Ok(KeyTrie::Leaf(MappableCommand::Typable {
Ok(KeyTrie::MappableCommand(MappableCommand::Typable {
name,
args,
doc: label.to_string(),
}))
}
Some(command) => Ok(KeyTrie::Leaf(command)),
Some(command) => Ok(KeyTrie::MappableCommand(command)),
}
}
}

Loading…
Cancel
Save