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

Minor fixes #3

Merged
merged 3 commits into from
Apr 24, 2024
Merged

Minor fixes #3

merged 3 commits into from
Apr 24, 2024

Conversation

EdJoPaTo
Copy link
Contributor

Follow-up to #2

EdJoPaTo and others added 3 commits April 24, 2024 03:29
sum of char_width might be longer than String.len() which could be more than usize
When there is an overflow the code is wrong. Notice that more actively.
@Aetf Aetf merged commit 021b6bf into Aetf:master Apr 24, 2024
@github-actions github-actions bot mentioned this pull request Apr 26, 2024
Aetf pushed a commit that referenced this pull request Apr 27, 2024
## 🤖 New release
* `unicode-truncate`: 0.2.0 -> 1.0.0 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>
It's about time for a 1.0 release. This crate has been stable over the
years.

### Breaking changes
Formally define MSRV (minimum supported rust version) to `1.63`.

### Added
- new method `unicode_truncate_centered`. Thanks @EdJoPaTo (#2, #3)

### Fixed
- prevent arithmetic side effects
([#7](#7))
- do not include zero-width characters at boundaries when truncate_start

### Other
- use release-plz
- use renovate (#4)
- move from Travis to Github Action
- update Rust crate criterion to 0.5
([#5](#5))
- fix broken links
- Check in Cargo.lock per the latest guide

</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants