Skip to content

Commit

Permalink
Resolve warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Oct 29, 2024
1 parent c8bb529 commit b617b09
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions crates/hyperqueue/src/bin/hq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,14 @@ use hyperqueue::client::task::{
TaskListOpts, TaskOpts,
};
use hyperqueue::common::cli::{
get_task_id_selector, get_task_selector, ColorPolicy, CommonOpts, DashboardCommand,
DashboardOpts, GenerateCompletionOpts, HwDetectOpts, JobCommand, JobOpts, JobProgressOpts,
JobWaitOpts, OptsWithMatches, RootOptions, SubCommand, WorkerAddressOpts, WorkerCommand,
WorkerInfoOpts, WorkerListOpts, WorkerOpts, WorkerStopOpts, WorkerWaitOpts,
get_task_id_selector, get_task_selector, ColorPolicy, CommonOpts, GenerateCompletionOpts,
HwDetectOpts, JobCommand, JobOpts, JobProgressOpts, JobWaitOpts, OptsWithMatches, RootOptions,
SubCommand, WorkerAddressOpts, WorkerCommand, WorkerInfoOpts, WorkerListOpts, WorkerOpts,
WorkerStopOpts, WorkerWaitOpts,
};
use hyperqueue::common::setup::setup_logging;
use hyperqueue::common::utils::fs::absolute_path;
use hyperqueue::server::bootstrap::get_client_session;
use hyperqueue::server::event::log::JournalReader;
use hyperqueue::server::event::Event;
use hyperqueue::transfer::messages::{
FromClientMessage, IdSelector, JobInfoRequest, ToClientMessage,
};
Expand Down Expand Up @@ -294,12 +292,15 @@ async fn command_worker_address(
}

#[cfg(feature = "dashboard")]
///Starts the hq Dashboard
/// Starts the hq dashboard
async fn command_dashboard_start(
gsettings: &GlobalSettings,
opts: DashboardOpts,
opts: hyperqueue::common::cli::DashboardOpts,
) -> anyhow::Result<()> {
use hyperqueue::common::cli::DashboardCommand;
use hyperqueue::dashboard::start_ui_loop;
use hyperqueue::server::event::log::JournalReader;
use hyperqueue::server::event::Event;

match opts.subcmd.unwrap_or_default() {
DashboardCommand::Replay { journal, stream } => {
Expand Down

0 comments on commit b617b09

Please sign in to comment.