Skip to content

Commit

Permalink
Rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-F-Bryan committed Jun 9, 2023
1 parent ba40091 commit e7e7419
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/cli/src/logging.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
//! Logging functions for the debug feature.

use tracing_subscriber::{
fmt, layer::SubscriberExt, util::SubscriberInitExt, EnvFilter,
};
use tracing_subscriber::{fmt, layer::SubscriberExt, util::SubscriberInitExt, EnvFilter};

/// Initialize logging based on the `$RUST_LOG` environment variable. Logs will
/// be disabled when `$RUST_LOG` isn't set.
Expand All @@ -15,8 +13,7 @@ pub fn set_up_logging() {
.with_writer(std::io::stderr)
.compact();

let filter_layer = EnvFilter::builder()
.from_env_lossy();
let filter_layer = EnvFilter::builder().from_env_lossy();

tracing_subscriber::registry()
.with(filter_layer)
Expand All @@ -33,4 +30,3 @@ pub fn set_up_logging() {
fn should_emit_colors() -> bool {
isatty::stderr_isatty() && std::env::var_os("NO_COLOR").is_none()
}

0 comments on commit e7e7419

Please sign in to comment.