diff --git a/crates/ruff_db/src/file_system.rs b/crates/ruff_db/src/file_system.rs index 740bbec560696..1e6e90059219b 100644 --- a/crates/ruff_db/src/file_system.rs +++ b/crates/ruff_db/src/file_system.rs @@ -21,7 +21,7 @@ pub type Result = std::io::Result; /// * Accessing unsaved or even untitled files in the LSP use case /// * Testing with an in-memory file system /// * Running Ruff in a WASM environment without needing to stub out the full `std::fs` API. -pub trait FileSystem { +pub trait FileSystem: std::fmt::Debug { /// Reads the metadata of the file or directory at `path`. fn metadata(&self, path: &FileSystemPath) -> Result; diff --git a/crates/ruff_db/src/file_system/os.rs b/crates/ruff_db/src/file_system/os.rs index 057334c5b7f9a..d3f5faf40e9ac 100644 --- a/crates/ruff_db/src/file_system/os.rs +++ b/crates/ruff_db/src/file_system/os.rs @@ -2,7 +2,7 @@ use filetime::FileTime; use crate::file_system::{FileSystem, FileSystemPath, FileType, Metadata, Result}; -#[derive(Default)] +#[derive(Default, Debug)] pub struct OsFileSystem; impl OsFileSystem {