Skip to content

Commit

Permalink
Merge pull request #694 from awslabs/dependabot/cargo/typed-path-0.6.0
Browse files Browse the repository at this point in the history
build(deps): bump typed-path from 0.4.0 to 0.6.0
  • Loading branch information
cbgbt authored Oct 19, 2023
2 parents 76cb496 + fe0b497 commit cfaa71f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
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

0 comments on commit cfaa71f

Please sign in to comment.