mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-08 14:21:05 +00:00
build(deps): bump path-slash from 0.1.1 to 0.1.2 (#1377)
* build(deps): bump path-slash from 0.1.1 to 0.1.2 Bumps [path-slash](https://github.com/rhysd/path-slash) from 0.1.1 to 0.1.2. - [Release notes](https://github.com/rhysd/path-slash/releases) - [Changelog](https://github.com/rhysd/path-slash/blob/master/CHANGELOG.md) - [Commits](https://github.com/rhysd/path-slash/compare/0.1.1...v0.1.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Fix tests to improve slash handling on Windows * Fix number of slashes * Try fixing the slashes again Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Matan Kushner <hello@matchai.dev>
This commit is contained in:
parent
4a421607df
commit
f9bf2324e2
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -761,9 +761,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "path-slash"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a0858af4d9136275541f4eac7be1af70add84cf356d901799b065ac1b8ff6e2f"
|
||||
checksum = "ddf9566c1063a197427135fb518ed42f2be18630fc2401aa267ed2dc95e9c85d"
|
||||
|
||||
[[package]]
|
||||
name = "percent-encoding"
|
||||
|
@ -40,7 +40,7 @@ log = "0.4.8"
|
||||
# battery is optional (on by default) because the crate doesn't currently build for Termux
|
||||
# see: https://github.com/svartalf/rust-battery/issues/33
|
||||
battery = { version = "0.7.5", optional = true }
|
||||
path-slash = "0.1.1"
|
||||
path-slash = "0.1.2"
|
||||
unicode-segmentation = "1.6.0"
|
||||
gethostname = "0.2.1"
|
||||
once_cell = "1.4.0"
|
||||
|
@ -283,7 +283,7 @@ mod tests {
|
||||
let top_level_path = Path::new("C:\\Users\\astronaut");
|
||||
|
||||
let output = contract_path(full_path, top_level_path, "~");
|
||||
assert_eq!(output, "C://Some/Other/Path");
|
||||
assert_eq!(output, "C:/Some/Other/Path");
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -293,7 +293,7 @@ mod tests {
|
||||
let top_level_path = Path::new("C:\\Users\\astronaut");
|
||||
|
||||
let output = contract_path(full_path, top_level_path, "~");
|
||||
assert_eq!(output, "C:/");
|
||||
assert_eq!(output, "C:");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -180,7 +180,7 @@ fn directory_in_root() -> io::Result<()> {
|
||||
.output()?;
|
||||
let actual = String::from_utf8(output.stdout).unwrap();
|
||||
|
||||
let expected = format!("in {} ", Color::Cyan.bold().paint("C:/"));
|
||||
let expected = format!("in {} ", Color::Cyan.bold().paint("C:"));
|
||||
assert_eq!(expected, actual);
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user