We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
starts_with('/')
is_absolute
1 parent 22b6488 commit 73370feCopy full SHA for 73370fe
crates/ruff_db/src/file_system/memory.rs
@@ -35,7 +35,7 @@ impl MemoryFileSystem {
35
let cwd = Utf8PathBuf::from(cwd.as_ref().as_str());
36
37
assert!(
38
- cwd.is_absolute(),
+ cwd.starts_with("/"),
39
"The current working directory must be an absolute path."
40
);
41
0 commit comments