Update `help` function signature

pull/997/head
Omnikar 3 years ago
parent 46d9f49cf9
commit 6f3930ca73
No known key found for this signature in database
GPG Key ID: 7DE6694CDA7885ED

@ -2643,7 +2643,7 @@ pub mod cmd {
fn help( fn help(
cx: &mut compositor::Context, cx: &mut compositor::Context,
args: &[&str], args: &[Cow<str>],
_event: PromptEvent, _event: PromptEvent,
) -> anyhow::Result<()> { ) -> anyhow::Result<()> {
if args.is_empty() { if args.is_empty() {
@ -2656,7 +2656,7 @@ pub mod cmd {
.iter() .iter()
.any(|command| command.name() == args[0]) .any(|command| command.name() == args[0])
{ {
args[0] &args[0]
} else { } else {
let _keys = args let _keys = args
.iter() .iter()

Loading…
Cancel
Save