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

Avoid reallocating for trimming #124

Merged
merged 1 commit into from
Mar 11, 2024
Merged

Avoid reallocating for trimming #124

merged 1 commit into from
Mar 11, 2024

Conversation

GnomedDev
Copy link
Contributor

Replaces the inefficient .trim().to_owned() with a small dependency which doesn't reallocate.

@zonyitoo zonyitoo merged commit e39ea00 into zonyitoo:master Mar 11, 2024
6 checks passed
@GnomedDev GnomedDev deleted the avoid-realloc branch March 11, 2024 10:15
renovate bot referenced this pull request in runtime-env/import-meta-env Jul 13, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [rust-ini](https://github.com/zonyitoo/rust-ini) | dependencies |
minor | `0.19.0` -> `0.21.0` |

---

### Release Notes

<details>
<summary>zonyitoo/rust-ini (rust-ini)</summary>

###
[`v0.21.0`](https://github.com/zonyitoo/rust-ini/releases/tag/v0.21.0)

[Compare
Source](https://github.com/zonyitoo/rust-ini/compare/v0.20.0...v0.21.0)

#### What's Changed

- Add iter_mut() and into_iter() to Properties by
[@&#8203;arucil](https://github.com/arucil) in
[https://github.com/zonyitoo/rust-ini/pull/118](https://github.com/zonyitoo/rust-ini/pull/118)
- Use a Cow<'static, str> for ParseError by
[@&#8203;GnomedDev](https://github.com/GnomedDev) in
[https://github.com/zonyitoo/rust-ini/pull/121](https://github.com/zonyitoo/rust-ini/pull/121)
- Updating README usage version to 0.20 by
[@&#8203;BigBallard](https://github.com/BigBallard) in
[https://github.com/zonyitoo/rust-ini/pull/125](https://github.com/zonyitoo/rust-ini/pull/125)
- Fix clippy warnings by
[@&#8203;GnomedDev](https://github.com/GnomedDev) in
[https://github.com/zonyitoo/rust-ini/pull/120](https://github.com/zonyitoo/rust-ini/pull/120)
- Add inline(never) to Parser::error by
[@&#8203;GnomedDev](https://github.com/GnomedDev) in
[https://github.com/zonyitoo/rust-ini/pull/122](https://github.com/zonyitoo/rust-ini/pull/122)
- Avoid reallocating for trimming by
[@&#8203;GnomedDev](https://github.com/GnomedDev) in
[https://github.com/zonyitoo/rust-ini/pull/124](https://github.com/zonyitoo/rust-ini/pull/124)

#### New Contributors

- [@&#8203;arucil](https://github.com/arucil) made their first
contribution in
[https://github.com/zonyitoo/rust-ini/pull/118](https://github.com/zonyitoo/rust-ini/pull/118)
- [@&#8203;GnomedDev](https://github.com/GnomedDev) made their first
contribution in
[https://github.com/zonyitoo/rust-ini/pull/121](https://github.com/zonyitoo/rust-ini/pull/121)
- [@&#8203;BigBallard](https://github.com/BigBallard) made their first
contribution in
[https://github.com/zonyitoo/rust-ini/pull/125](https://github.com/zonyitoo/rust-ini/pull/125)

**Full Changelog**:
zonyitoo/rust-ini@v0.20.0...v0.21.0

###
[`v0.20.0`](https://github.com/zonyitoo/rust-ini/releases/tag/v0.20.0)

[Compare
Source](https://github.com/zonyitoo/rust-ini/compare/v0.19.0...v0.20.0)

#### What's Changed

- Fix clippy warnings by
[@&#8203;crapStone](https://github.com/crapStone) in
[https://github.com/zonyitoo/rust-ini/pull/110](https://github.com/zonyitoo/rust-ini/pull/110)
- Add support for custom key-value separator in nameless sections. by
[@&#8203;LostSnail42](https://github.com/LostSnail42) in
[https://github.com/zonyitoo/rust-ini/pull/112](https://github.com/zonyitoo/rust-ini/pull/112)
- Update ordered-multimap dependency by
[@&#8203;loewenheim](https://github.com/loewenheim) in
[https://github.com/zonyitoo/rust-ini/pull/115](https://github.com/zonyitoo/rust-ini/pull/115)

#### New Contributors

- [@&#8203;crapStone](https://github.com/crapStone) made their first
contribution in
[https://github.com/zonyitoo/rust-ini/pull/110](https://github.com/zonyitoo/rust-ini/pull/110)
- [@&#8203;LostSnail42](https://github.com/LostSnail42) made their
first contribution in
[https://github.com/zonyitoo/rust-ini/pull/112](https://github.com/zonyitoo/rust-ini/pull/112)
- [@&#8203;loewenheim](https://github.com/loewenheim) made their first
contribution in
[https://github.com/zonyitoo/rust-ini/pull/115](https://github.com/zonyitoo/rust-ini/pull/115)

**Full Changelog**:
zonyitoo/rust-ini@v0.19.0...v0.20.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/runtime-env/import-meta-env).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuOSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ernest <>
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.

2 participants