mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 10:58:28 +00:00
Update Rust crate fs-err to v3 (#8625)
This commit is contained in:
parent
07806c404a
commit
dae630ae50
9 changed files with 66 additions and 46 deletions
|
@ -43,5 +43,5 @@ workspace = true
|
|||
|
||||
[dev-dependencies]
|
||||
indoc = { version = "2.0.5" }
|
||||
insta = { version = "1.40.0" }
|
||||
insta = { version = "1.40.0", features = ["filters"] }
|
||||
tempfile = { version = "3.12.0" }
|
||||
|
|
|
@ -1022,8 +1022,15 @@ mod tests {
|
|||
.unwrap()
|
||||
.to_metadata(Path::new("/do/not/read"))
|
||||
.unwrap_err();
|
||||
// Simplified for windows compatibility.
|
||||
assert_snapshot!(err.to_string().replace('\\', "/"), @"failed to open file `/do/not/read/Readme.md`");
|
||||
// Strip away OS specific part.
|
||||
let err = err
|
||||
.to_string()
|
||||
.replace('\\', "/")
|
||||
.split_once(':')
|
||||
.unwrap()
|
||||
.0
|
||||
.to_string();
|
||||
assert_snapshot!(err, @"failed to open file `/do/not/read/Readme.md`");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue