ok/jj
1
0
Fork 0
forked from mirrors/jj

debug.rs: make one of the imports optional

This removes a warning rust-analyzer otherwise shows me.
This commit is contained in:
Ilya Grigoriev 2023-10-27 21:27:19 -07:00
parent 2571169251
commit 62e0729f41

View file

@ -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;
@ -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 {