Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Sep 25, 2024
1 parent 5c3446b commit dcaafb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bin/wasmtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//! See `wasmtime --help` for usage.

use anyhow::Result;
use clap::{CommandFactory, Parser};
use clap::Parser;

/// Wasmtime WebAssembly Runtime
#[derive(Parser)]
Expand Down Expand Up @@ -144,6 +144,8 @@ pub struct CompletionCommand {
#[cfg(feature = "completion")]
impl CompletionCommand {
pub fn execute(&self) -> Result<()> {
use clap::CommandFactory;

let mut cmd = Wasmtime::command();
let cli_name = cmd.get_name().to_owned();

Expand Down

0 comments on commit dcaafb0

Please sign in to comment.