Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump typed-path from 0.4.0 to 0.6.0 #694

Merged
merged 1 commit into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 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 tough/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ serde_json = "1"
serde_plain = "1"
snafu = "0.7"
tempfile = "3"
typed-path = "0.4"
typed-path = "0.6"
untrusted = "0.7"
url = "2"
walkdir = "2"
Expand Down
3 changes: 2 additions & 1 deletion tough/src/target_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
use snafu::{ensure, OptionExt};
use std::convert::TryFrom;
use std::str::FromStr;
use typed_path::constants::unix::SEPARATOR_STR;
use typed_path::{Component, UnixPath, UnixPathBuf};

/// Represents the name of a target in the repository. Path-like constructs are resolved (e.g.
Expand Down Expand Up @@ -137,7 +138,7 @@ fn clean_name(name: &str) -> Result<String> {
// If the first component isn't the main separator ( unix `/`, windows '\' )
// then there is a bug or behavior change in absolutize_from.
ensure!(
first_component == typed_path::unix::SEPARATOR_STR.as_bytes(),
first_component == SEPARATOR_STR.as_bytes(),
error::TargetNameRootMissingSnafu { name }
);

Expand Down