Update dependency rust to v1.90.0 (#355)

Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs
from Renovate will soon appear from 'Mend'. Learn more
[here](https://redirect.github.com/renovatebot/renovate/discussions/37842).

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [rust](https://redirect.github.com/rust-lang/rust) | minor | `1.89.0`
-> `1.90.0` |

---

### Release Notes

<details>
<summary>rust-lang/rust (rust)</summary>

###
[`v1.90.0`](https://redirect.github.com/rust-lang/rust/compare/1.89.0...1.90.0)

[Compare
Source](https://redirect.github.com/rust-lang/rust/compare/1.89.0...1.90.0)

</details>

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, 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://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/boardgamers/clash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS45Ny4xMCIsInVwZGF0ZWRJblZlciI6IjQxLjk3LjEwIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
This commit is contained in:
renovate[bot] 2025-09-21 08:45:22 +00:00 • committed by GitHub
commit 800a0d401a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 8 deletions

View file

@ -70,5 +70,5 @@ run = "./scripts/publish-client.sh test"
"cargo:cargo-nextest" = "0.9.103"
"cargo:wasm-bindgen-cli" = "0.2.101"
"cargo:wasm-pack" = "0.13.1"
rust = { version = "1.89.0", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" }
rust = { version = "1.90.0", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" }

View file

@ -328,7 +328,7 @@ pub fn combat_requirement_met(
action_card_id: u8,
requirement: &CombatRequirement,
) -> Option<usize> {
let sister_card = if action_card_id % 2 == 0 {
let sister_card = if action_card_id.is_multiple_of(2) {
action_card_id - 1
} else {
action_card_id + 1

View file

@ -270,10 +270,7 @@ impl Display for PaymentOptions {
}
match conversion.payment_conversion_type {
PaymentConversionType::Unlimited => {}
PaymentConversionType::MayOverpay(i) => {
write!(f, " (up to: {i})")?;
}
PaymentConversionType::MayNotOverpay(i) => {
PaymentConversionType::MayOverpay(i) | PaymentConversionType::MayNotOverpay(i) => {
write!(f, " (up to: {i})")?;
}
}

View file

@ -706,7 +706,7 @@ fn save_carried_units(game: &mut Game, player: usize, pos: Position) {
u.carrier_id
.is_some_and(|id| game.player(player).try_get_unit(id).is_none())
})
.map(|u| (u.id))
.map(|u| u.id)
.collect_vec();
if survivors.is_empty() {

View file

@ -92,7 +92,7 @@ pub fn median(list: &[f64]) -> f64 {
let mut sorted_list = list.to_vec();
sorted_list.sort_by(f64::total_cmp);
let len = sorted_list.len();
if len % 2 == 0 {
if len.is_multiple_of(2) {
f64::midpoint(sorted_list[len / 2 - 1], sorted_list[len / 2])
} else {
sorted_list[len / 2]