Skip to content

Commit

Permalink
fix: remove debug constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
hardfist committed Sep 6, 2024
1 parent 50195a5 commit c6323d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 4 additions & 1 deletion crates/rspack_core/src/compiler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -48,9 +49,11 @@ pub struct CompilerHooks {
pub asset_emitted: CompilerAssetEmittedHook,
}

#[derive(Debug)]
#[derive(Derivative)]
#[derivative(Debug)]
pub struct Compiler {
pub options: Arc<CompilerOptions>,
#[derivative(Debug = "ignore")]
pub output_filesystem: Box<dyn AsyncWritableFileSystem + Send + Sync>,
pub compilation: Compilation,
pub plugin_driver: SharedPluginDriver,
Expand Down
4 changes: 1 addition & 3 deletions crates/rspack_fs/src/async.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit c6323d8

Please sign in to comment.