Skip to content

Commit

Permalink
chore(deps): bump num-traits from 0.2.18 to 0.2.19 (#58)
Browse files Browse the repository at this point in the history
Bumps [num-traits](https://github.com/rust-num/num-traits) from 0.2.18
to 0.2.19.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/rust-num/num-traits/blob/master/RELEASES.md">num-traits's
changelog</a>.</em></p>
<blockquote>
<h1>Release 0.2.19 (2024-05-03)</h1>
<ul>
<li><a
href="https://redirect.github.com/rust-num/num-traits/pull/310">Upgrade
to 2021 edition, <strong>MSRV 1.60</strong></a></li>
<li><a
href="https://redirect.github.com/rust-num/num-traits/pull/305">The new
<code>Float::clamp</code> limits values by minimum and maximum</a></li>
</ul>
<p><strong>Contributors</strong>: <a
href="https://github.com/cuviper"><code>@​cuviper</code></a>, <a
href="https://github.com/michaelciraci"><code>@​michaelciraci</code></a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/rust-num/num-traits/commit/7ec3d41d39b28190ec1d42db38021107b3951f3a"><code>7ec3d41</code></a>
Merge pull request <a
href="https://redirect.github.com/rust-num/num-traits/issues/321">#321</a>
from cuviper/release-0.2.19</li>
<li><a
href="https://github.com/rust-num/num-traits/commit/1a8d429a2ccc763a0c4345234dbf097ca7d14c1e"><code>1a8d429</code></a>
Release 0.2.19</li>
<li><a
href="https://github.com/rust-num/num-traits/commit/8358949084a87873553e81493f8b52b1e3dee302"><code>8358949</code></a>
Merge pull request <a
href="https://redirect.github.com/rust-num/num-traits/issues/305">#305</a>
from michaelciraci/implement-float-clamp</li>
<li><a
href="https://github.com/rust-num/num-traits/commit/1a44ffb9deb4d76988b6ea6bc2767ed40264aac3"><code>1a44ffb</code></a>
Add a default impl for <code>Float::clamp</code></li>
<li><a
href="https://github.com/rust-num/num-traits/commit/295704408f524c7df8f036eb875f48e6b998d693"><code>2957044</code></a>
Implementing clamp for Float trait</li>
<li><a
href="https://github.com/rust-num/num-traits/commit/a90d4a62deb7946abd40e171f0ee8575bf25f96c"><code>a90d4a6</code></a>
Merge pull request <a
href="https://redirect.github.com/rust-num/num-traits/issues/310">#310</a>
from cuviper/msrv-1.60</li>
<li><a
href="https://github.com/rust-num/num-traits/commit/ca42b4e106486b8fe9b22eeabb90aa8a0452f148"><code>ca42b4e</code></a>
Update the MSRV in docs</li>
<li><a
href="https://github.com/rust-num/num-traits/commit/e9bea92808de77ff4d4e94c8fe0dccece542d2ce"><code>e9bea92</code></a>
Upgrade to 2021 edition</li>
<li><a
href="https://github.com/rust-num/num-traits/commit/4e253cdaa9948f4fb8b4136c78d655a34eac3c26"><code>4e253cd</code></a>
Assume has_float_to_from_bytes</li>
<li><a
href="https://github.com/rust-num/num-traits/commit/7212041f31654953ba55c7bc66e6a8440524dda4"><code>7212041</code></a>
Assume has_int_to_from_bytes</li>
<li>Additional commits viewable in <a
href="https://github.com/rust-num/num-traits/compare/num-traits-0.2.18...num-traits-0.2.19">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=num-traits&package-manager=cargo&previous-version=0.2.18&new-version=0.2.19)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
  • Loading branch information
Yag000 authored May 6, 2024
2 parents 1276631 + a8970a4 commit 2932055
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ clap = "4.5.4"
clap_derive = "4.5.4"
byteorder = "1.5.0"
num-derive = "0.4.1"
num-traits = "0.2.17"
num-traits = "0.2.19"
strum = "0.26.2"
strum_macros = "0.26.2"
rustyline = "14.0.0"
Expand Down
10 changes: 2 additions & 8 deletions src/compiler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,8 @@ impl CompilerScope {

fn leave_loop_scope(&mut self) -> Option<Rc<RefCell<LoopScope>>> {
let outer = self.loop_scope.clone();
self.loop_scope = self
.loop_scope
.clone()
.unwrap()
.as_ref()
.borrow()
.outer
.clone();
self.loop_scope
.clone_from(&self.loop_scope.clone().unwrap().as_ref().borrow().outer);
outer
}
}
Expand Down

0 comments on commit 2932055

Please sign in to comment.