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

Deduplicate eof error handling #127

Merged
merged 1 commit into from
Mar 30, 2024
Merged

Deduplicate eof error handling #127

merged 1 commit into from
Mar 30, 2024

Conversation

GnomedDev
Copy link
Contributor

This also removes the anti-pattern of Option::is_none() -> Option::unwrap().

Sadly I had to split out eof_error into a different function as otherwise llvm will forget all about the [cold] attribute.

@zonyitoo zonyitoo merged commit c901b45 into zonyitoo:master Mar 30, 2024
6 checks passed
@GnomedDev GnomedDev deleted the remove-char-unwrap branch March 30, 2024 18:52
renovate bot referenced this pull request in runtime-env/import-meta-env Aug 3, 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://togithub.com/zonyitoo/rust-ini) | dependencies |
patch | `0.21.0` -> `0.21.1` |

---

### Release Notes

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

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

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

#### What's Changed

- Deduplicate eof error handling by
[@&#8203;GnomedDev](https://togithub.com/GnomedDev) in
[https://github.com/zonyitoo/rust-ini/pull/127](https://togithub.com/zonyitoo/rust-ini/pull/127)
- [#&#8203;128](https://togithub.com/zonyitoo/rust-ini/issues/128)
Add/Allow duplicate properties by
[@&#8203;RouHim](https://togithub.com/RouHim) in
[https://github.com/zonyitoo/rust-ini/pull/129](https://togithub.com/zonyitoo/rust-ini/pull/129)
- Restrict lifetimes of SectionSetter methods by
[@&#8203;rikyborg](https://togithub.com/rikyborg) in
[https://github.com/zonyitoo/rust-ini/pull/135](https://togithub.com/zonyitoo/rust-ini/pull/135)

#### New Contributors

- [@&#8203;RouHim](https://togithub.com/RouHim) made their first
contribution in
[https://github.com/zonyitoo/rust-ini/pull/129](https://togithub.com/zonyitoo/rust-ini/pull/129)
- [@&#8203;rikyborg](https://togithub.com/rikyborg) made their first
contribution in
[https://github.com/zonyitoo/rust-ini/pull/135](https://togithub.com/zonyitoo/rust-ini/pull/135)

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

</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 was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/runtime-env/import-meta-env).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[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.

2 participants