Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ada-x64 committed Nov 13, 2023
1 parent 699bd67 commit 29edbb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/perspective-viewer/src/rust/utils/console_logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

use std::fmt::{Debug, Write};
use std::sync::OnceLock;

use tracing::field::{Field, Visit};
use tracing::Subscriber;
Expand Down Expand Up @@ -195,6 +194,7 @@ impl<S: Subscriber + for<'a> LookupSpan<'a>> Layer<S> for WasmLogger {
/// we stub this library out entirely to save bytes.
#[cfg(debug_assertions)]
pub fn set_global_logging() {
use std::sync::OnceLock;
static INIT_LOGGING: OnceLock<()> = OnceLock::new();
INIT_LOGGING.get_or_init(|| {
use tracing_subscriber::layer::SubscriberExt;
Expand Down

0 comments on commit 29edbb9

Please sign in to comment.