Skip to content

Commit

Permalink
build(deps): bump typed-path from 0.4.0 to 0.6.0
Browse files Browse the repository at this point in the history
Bumps [typed-path](https://github.com/chipsenkbeil/typed-path) from 0.4.0 to 0.6.0.
- [Release notes](https://github.com/chipsenkbeil/typed-path/releases)
- [Changelog](https://github.com/chipsenkbeil/typed-path/blob/main/CHANGELOG.md)
- [Commits](chipsenkbeil/typed-path@v0.4.0...v0.6.0)

---
updated-dependencies:
- dependency-name: typed-path
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
  • Loading branch information
dependabot[bot] authored and stmcginnis committed Oct 16, 2023
1 parent 8c13370 commit fe0b497
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 fe0b497

Please sign in to comment.