From 204e11b8b119919ef866862b5d281bfa4062e867 Mon Sep 17 00:00:00 2001 From: Adrien Date: Sun, 26 May 2024 18:09:05 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20tracing=5Fforest=20crate=20isn't?= =?UTF-8?q?=20used=20for=20wasm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index c29d3f3..6bb9464 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,7 +13,6 @@ use std::rc::Rc; use dioxus::prelude::*; use futures_util::stream::StreamExt; use tracing::{debug, error, warn}; -use tracing_forest::ForestLayer; use tracing_subscriber::{prelude::*, EnvFilter}; use crate::{ @@ -29,10 +28,12 @@ cfg_if! { if #[cfg(target_family = "wasm")] { use tracing_web::MakeWebConsoleWriter; } else { - use dioxus::desktop::Config; use std::fs::File; + + use dioxus::desktop::Config; use time::format_description::well_known::Iso8601; use tracing_subscriber::fmt::time::UtcTime; + use tracing_forest::ForestLayer; } }