Skip to content

Commit

Permalink
Use cfg feature flag instead of allowing unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
spencewenski committed Apr 7, 2024
1 parent f857089 commit fb11c2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ use sea_orm_migration::MigratorTrait;
use sidekiq::{periodic, Processor};
use tokio::task::JoinSet;
use tokio_util::sync::CancellationToken;
// `debug` isn't used with some feature configurations
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument};
#[cfg(feature = "sidekiq")]
use tracing::debug;
use tracing::{error, info, instrument};

use crate::app_context::AppContext;
#[cfg(feature = "cli")]
Expand Down

0 comments on commit fb11c2a

Please sign in to comment.