Skip to content

Commit 2b30df8

Browse files
David Tolnaymeta-codesync[bot]
authored andcommitted
Update path-absolutize from 3.1.1 to 4.0.1
Reviewed By: ndmitchell Differential Revision: D131754595 fbshipit-source-id: 732299137661fe89e86da605afc64d5fb46a3aeb
1 parent 28d3821 commit 2b30df8

3 files changed

Lines changed: 6 additions & 12 deletions

File tree

‎Cargo.lock‎

Lines changed: 4 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/pyrefly_util/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ lsp_types = { package = "gen-lsp-types", version = "0.11.0", features = ["url"]
2828
memory-stats = "1.2.0"
2929
notify = "9.0.0-rc.6"
3030
parse-display = "0.8.2"
31-
path-absolutize = { version = "3.1.1", features = ["once_cell_cache", "use_unix_paths_on_wasm"] }
31+
path-absolutize = "4.0.1"
3232
pathdiff = "0.2"
3333
rayon = "1.11.0"
3434
ruff_notebook = "0.0.21"

‎crates/pyrefly_util/src/absolutize.rs‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ impl Absolutize for Path {
4646
};
4747
Cow::Owned(base.into_owned())
4848
};
49-
if let Ok(absolutized) = PathAbsolutize::absolutize_from(self, base.as_ref()) {
50-
return absolutized.into_owned();
51-
}
52-
base.join(self)
49+
PathAbsolutize::absolutize_from(self, base.as_ref()).into_owned()
5350
}
5451

5552
/// Compute a relative path from `base` to `self`.

0 commit comments

Comments
 (0)