diff --git a/crates/ruff_db/src/file_system/memory.rs b/crates/ruff_db/src/file_system/memory.rs index cc96255769..2d8a77d882 100644 --- a/crates/ruff_db/src/file_system/memory.rs +++ b/crates/ruff_db/src/file_system/memory.rs @@ -35,7 +35,7 @@ impl MemoryFileSystem { let cwd = Utf8PathBuf::from(cwd.as_ref().as_str()); assert!( - cwd.is_absolute(), + cwd.starts_with("/"), "The current working directory must be an absolute path." );