mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-12-03 06:22:32 -05:00
fix a couple clippy errors
...with Rust 1.82.
This commit is contained in:
@@ -5,7 +5,7 @@ authors = ["Scott Lamb <slamb@slamb.org>"]
|
||||
edition = "2021"
|
||||
resolver = "2"
|
||||
license-file = "../LICENSE.txt"
|
||||
rust-version = "1.79"
|
||||
rust-version = "1.81"
|
||||
publish = false
|
||||
|
||||
[features]
|
||||
|
||||
@@ -90,7 +90,7 @@ where
|
||||
/// This means it includes a timestamp, follows [OpenTelemetry Semantic
|
||||
/// Conventions for Exceptions](https://opentelemetry.io/docs/reference/specification/logs/semantic_conventions/exceptions/),
|
||||
/// 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>() {
|
||||
Some(*s)
|
||||
} else if let Some(s) = p.payload().downcast_ref::<String>() {
|
||||
|
||||
@@ -5,7 +5,7 @@ authors = ["Scott Lamb <slamb@slamb.org>"]
|
||||
readme = "../README.md"
|
||||
edition = "2021"
|
||||
license-file = "../../LICENSE.txt"
|
||||
rust-version = "1.79"
|
||||
rust-version = "1.81"
|
||||
publish = false
|
||||
|
||||
[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 {
|
||||
use futures::stream::StreamExt;
|
||||
match b.next().await {
|
||||
|
||||
Reference in New Issue
Block a user