Skip to content

Commit 73370fe

Browse files
authored
Use starts_with('/') instead of is_absolute to avoid platform specific API (#11855)
1 parent 22b6488 commit 73370fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ruff_db/src/file_system/memory.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl MemoryFileSystem {
3535
let cwd = Utf8PathBuf::from(cwd.as_ref().as_str());
3636

3737
assert!(
38-
cwd.is_absolute(),
38+
cwd.starts_with("/"),
3939
"The current working directory must be an absolute path."
4040
);
4141

0 commit comments

Comments
 (0)