mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 06:11:21 +00:00
Use starts_with('/')
instead of is_absolute
to avoid platform specific API (#11855)
This commit is contained in:
parent
22b6488550
commit
73370fe798
1 changed files with 1 additions and 1 deletions
|
@ -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."
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue