From 73d627c3118c09d96664e97044f23fc0d6ff0bf3 Mon Sep 17 00:00:00 2001 From: hardfist Date: Fri, 6 Sep 2024 11:08:33 +0800 Subject: [PATCH] fix: remove debug constraint --- crates/rspack_core/src/compiler/mod.rs | 5 ++++- crates/rspack_fs/src/async.rs | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/rspack_core/src/compiler/mod.rs b/crates/rspack_core/src/compiler/mod.rs index 76c8bc64ca7..6f38dc889b5 100644 --- a/crates/rspack_core/src/compiler/mod.rs +++ b/crates/rspack_core/src/compiler/mod.rs @@ -4,6 +4,7 @@ mod make; mod module_executor; use std::sync::Arc; +use derivative::Derivative; use rspack_error::Result; use rspack_fs::AsyncWritableFileSystem; use rspack_futures::FuturesResults; @@ -48,9 +49,11 @@ pub struct CompilerHooks { pub asset_emitted: CompilerAssetEmittedHook, } -#[derive(Debug)] +#[derive(Derivative)] +#[derivative(Debug)] pub struct Compiler { pub options: Arc, + #[derivative(Debug = "ignore")] pub output_filesystem: Box, pub compilation: Compilation, pub plugin_driver: SharedPluginDriver, diff --git a/crates/rspack_fs/src/async.rs b/crates/rspack_fs/src/async.rs index 6c8fec3e04c..21fa2e3802a 100644 --- a/crates/rspack_fs/src/async.rs +++ b/crates/rspack_fs/src/async.rs @@ -1,11 +1,9 @@ -use std::fmt::Debug; - use futures::future::BoxFuture; use rspack_paths::Utf8Path; use crate::Result; -pub trait AsyncWritableFileSystem: Debug { +pub trait AsyncWritableFileSystem { /// Creates a new, empty directory at the provided path. /// /// NOTE: If a parent of the given path doesn’t exist, this function is supposed to return an error.