Skip to content

Commit

Permalink
Bump unicode-width from 0.1.13 to 0.2.0 (#1087)
Browse files Browse the repository at this point in the history
* Bump unicode-width from 0.1.13 to 0.2.0

Bumps [unicode-width](https://github.com/unicode-rs/unicode-width) from 0.1.13 to 0.2.0.
- [Commits](https://github.com/unicode-rs/unicode-width/commits)

---
updated-dependencies:
- dependency-name: unicode-width
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix test

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yutaka Kamei <[email protected]>
  • Loading branch information
dependabot[bot] and yykamei authored Oct 22, 2024
1 parent 04e49b1 commit d91e6a0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ git2 = { version = "0.19.0", default-features = false }
libc = "0.2.161"
log = { version = "0.4.22", features = ["std"] }
unicode-segmentation = "1.12.0"
unicode-width = "0.1.13"
unicode-width = "0.2.0"

[dev-dependencies]
pretty_assertions = "1.4.1"
Expand Down
12 changes: 10 additions & 2 deletions src/matched_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ mod tests {
new("👩‍🔬🗑", "C:\\", "C:\\Documents\\👩‍🔬\\🦑\\abcde\\🗑🌍.txt").absolute_chunks(24),
vec![
Chunk {
value: String::from("..."),
value: String::from("...s\\"),
matched: false
},
Chunk {
Expand Down Expand Up @@ -635,7 +635,15 @@ mod tests {
new("👩‍🔬☕", "C:\\", "C:\\Documents\\👩‍🔬\\🦑\\abcde\\☕🌍.txt").relative_chunks(24),
vec![
Chunk {
value: String::from("...\\🦑\\abcde\\"),
value: String::from("...\\"),
matched: false,
},
Chunk {
value: String::from("👩‍🔬"),
matched: true,
},
Chunk {
value: String::from("\\🦑\\abcde\\"),
matched: false,
},
Chunk {
Expand Down

0 comments on commit d91e6a0

Please sign in to comment.