Skip to content

Commit

Permalink
debug.rs: make one of the imports optional
Browse files Browse the repository at this point in the history
This removes a warning rust-analyzer otherwise shows me.
  • Loading branch information
ilyagr committed Oct 29, 2023
1 parent c8fbfd8 commit 143967e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/src/commands/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use std::io::Write as _;
use clap::Subcommand;
use jj_lib::backend::ObjectId;
use jj_lib::default_index_store::{DefaultIndexStore, ReadonlyIndexWrapper};
use jj_lib::local_working_copy::{LocalWorkingCopy, LockedLocalWorkingCopy};
use jj_lib::local_working_copy::LocalWorkingCopy;
use jj_lib::revset;
use jj_lib::working_copy::WorkingCopy;

Expand Down Expand Up @@ -276,6 +276,8 @@ fn cmd_debug_watchman(
command: &CommandHelper,
subcommand: &DebugWatchmanSubcommand,
) -> Result<(), CommandError> {
use jj_lib::local_working_copy::LockedLocalWorkingCopy;

let mut workspace_command = command.workspace_helper(ui)?;
let repo = workspace_command.repo().clone();
match subcommand {
Expand Down

0 comments on commit 143967e

Please sign in to comment.