Skip to content

Commit

Permalink
fix(deps): update rust crate rust-ini to 0.21.0 (#1302)
Browse files Browse the repository at this point in the history
[![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 |
minor | `0.19.0` -> `0.21.0` |

---

### Release Notes

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

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

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

#### New Contributors

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

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

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

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

#### What's Changed

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

#### New Contributors

- [@&#8203;crapStone](https://togithub.com/crapStone) made their first
contribution in
[https://github.com/zonyitoo/rust-ini/pull/110](https://togithub.com/zonyitoo/rust-ini/pull/110)
- [@&#8203;LostSnail42](https://togithub.com/LostSnail42) made their
first contribution in
[https://github.com/zonyitoo/rust-ini/pull/112](https://togithub.com/zonyitoo/rust-ini/pull/112)
- [@&#8203;loewenheim](https://togithub.com/loewenheim) made their first
contribution in
[https://github.com/zonyitoo/rust-ini/pull/115](https://togithub.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 <>
  • Loading branch information
renovate[bot] authored Jul 13, 2024
1 parent e2c9992 commit 87018b3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
21 changes: 14 additions & 7 deletions packages/swc/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 packages/swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ crate-type = ["cdylib", "rlib"]
lto = true

[dependencies]
rust-ini = "0.19.0"
rust-ini = "0.21.0"
serde = "1.0.189"
serde_json = "1.0.107"
string_cache = "0.8.7"
Expand Down
3 changes: 1 addition & 2 deletions packages/swc/src/core/resolve_env_from_file_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ pub fn resolve_env_from_file_name(file_name: &str) -> Vec<(String, String)> {
ini::Ini::load_from_str(file_content.as_str())
.unwrap()
.into_iter()
.map(|(_, prop)| prop.iter())
.flatten()
.flat_map(|(_, prop)| prop.into_iter())
.for_each(|(k, v)| {
env.push((k.to_owned(), v.to_owned()));
});
Expand Down

0 comments on commit 87018b3

Please sign in to comment.