Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
Update path-slash to v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Sep 17, 2022
1 parent f6c1104 commit 879490b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ oauth2 = "4.1"
once_cell = "1"
openssl = { version = "0.10.35", optional = true }
os-version = "0.2.0"
path-slash = "0.1.4"
path-slash = "0.2.1"
percent-encoding = "2.1.0"
predicates = "2.0.0"
prettytable-rs = "0.8.0"
Expand Down
3 changes: 2 additions & 1 deletion src/upload/form/project_assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ impl ModuleConfig {
.map(|p| {
let p = p.as_ref();
p.strip_prefix(upload_dir).map(|p_stripped_prefix| {
let p_stripped_prefix: PathBuf = p_stripped_prefix.to_slash_lossy().into();
let p_stripped_prefix: PathBuf =
p_stripped_prefix.to_slash_lossy().into_owned().into();
// we convert the path used for matching and names to a slash path
// so globs are the same on all platforms
// to_slash_lossy() strips non-unicode characters in the path on windows
Expand Down

0 comments on commit 879490b

Please sign in to comment.