Skip to content

Commit

Permalink
Use starts_with('/') instead of is_absolute to avoid platform spe…
Browse files Browse the repository at this point in the history
…cific API (#11855)
  • Loading branch information
MichaReiser committed Jun 13, 2024
1 parent 22b6488 commit 73370fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff_db/src/file_system/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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."
);

Expand Down

0 comments on commit 73370fe

Please sign in to comment.