mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-04-23 20:15:39 -04:00
fix a couple clippy errors
...with Rust 1.82.
This commit is contained in:
parent
3739e634ab
commit
9256561362
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
|||||||
name: Rust ${{ matrix.rust }}
|
name: Rust ${{ matrix.rust }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
rust: [ "stable", "1.79", "nightly" ]
|
rust: [ "stable", "1.81", "nightly" ]
|
||||||
include:
|
include:
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
extra_args: "--features nightly --benches"
|
extra_args: "--features nightly --benches"
|
||||||
|
@ -8,6 +8,10 @@ upgrades, e.g. `v0.6.x` -> `v0.7.x`. The config file format and
|
|||||||
[API](ref/api.md) currently have no stability guarantees, so they may change
|
[API](ref/api.md) currently have no stability guarantees, so they may change
|
||||||
even on minor releases, e.g. `v0.7.5` -> `v0.7.6`.
|
even on minor releases, e.g. `v0.7.5` -> `v0.7.6`.
|
||||||
|
|
||||||
|
## unreleased
|
||||||
|
|
||||||
|
* bump minimum Rust version to 1.81.
|
||||||
|
|
||||||
## v0.7.17 (2024-09-03)
|
## v0.7.17 (2024-09-03)
|
||||||
|
|
||||||
* bump minimum Rust version to 1.79.
|
* bump minimum Rust version to 1.79.
|
||||||
|
@ -68,7 +68,7 @@ following command:
|
|||||||
$ brew install node
|
$ brew install node
|
||||||
```
|
```
|
||||||
|
|
||||||
Next, you need Rust 1.79+ and Cargo. The easiest way to install them is by
|
Next, you need Rust 1.81+ and Cargo. The easiest way to install them is by
|
||||||
following the instructions at [rustup.rs](https://www.rustup.rs/). Avoid
|
following the instructions at [rustup.rs](https://www.rustup.rs/). Avoid
|
||||||
your Linux distribution's Rust packages, which tend to be too old.
|
your Linux distribution's Rust packages, which tend to be too old.
|
||||||
(At least on Debian-based systems; Arch and Gentoo might be okay.)
|
(At least on Debian-based systems; Arch and Gentoo might be okay.)
|
||||||
|
@ -5,7 +5,7 @@ authors = ["Scott Lamb <slamb@slamb.org>"]
|
|||||||
edition = "2021"
|
edition = "2021"
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
license-file = "../LICENSE.txt"
|
license-file = "../LICENSE.txt"
|
||||||
rust-version = "1.79"
|
rust-version = "1.81"
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
@ -90,7 +90,7 @@ where
|
|||||||
/// This means it includes a timestamp, follows [OpenTelemetry Semantic
|
/// This means it includes a timestamp, follows [OpenTelemetry Semantic
|
||||||
/// Conventions for Exceptions](https://opentelemetry.io/docs/reference/specification/logs/semantic_conventions/exceptions/),
|
/// Conventions for Exceptions](https://opentelemetry.io/docs/reference/specification/logs/semantic_conventions/exceptions/),
|
||||||
/// etc.
|
/// etc.
|
||||||
fn panic_hook(p: &std::panic::PanicInfo) {
|
fn panic_hook(p: &std::panic::PanicHookInfo) {
|
||||||
let payload: Option<&str> = if let Some(s) = p.payload().downcast_ref::<&str>() {
|
let payload: Option<&str> = if let Some(s) = p.payload().downcast_ref::<&str>() {
|
||||||
Some(*s)
|
Some(*s)
|
||||||
} else if let Some(s) = p.payload().downcast_ref::<String>() {
|
} else if let Some(s) = p.payload().downcast_ref::<String>() {
|
||||||
|
@ -5,7 +5,7 @@ authors = ["Scott Lamb <slamb@slamb.org>"]
|
|||||||
readme = "../README.md"
|
readme = "../README.md"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license-file = "../../LICENSE.txt"
|
license-file = "../../LICENSE.txt"
|
||||||
rust-version = "1.79"
|
rust-version = "1.81"
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
@ -1881,7 +1881,7 @@ impl File {
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
})?);
|
})?);
|
||||||
let mut b = std::pin::Pin::from(self.get_range(0..self.len()));
|
let mut b = self.get_range(0..self.len());
|
||||||
loop {
|
loop {
|
||||||
use futures::stream::StreamExt;
|
use futures::stream::StreamExt;
|
||||||
match b.next().await {
|
match b.next().await {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user