Appease clippy in Rust 1.70 (#4365)

## Issue Addressed

NA

## Proposed Changes

Fixes some new clippy lints raised after updating to Rust 1.70.

## Additional Info

NA
This commit is contained in:
Paul Hauner 2023-06-02 03:17:40 +00:00
parent 4af4e98c82
commit d07c78bccf
5 changed files with 6 additions and 6 deletions

View File

@ -742,7 +742,7 @@ where
runtime_context runtime_context
.executor .executor
.spawn_without_exit(async move { server.await }, "http-metrics"); .spawn_without_exit(server, "http-metrics");
Some(listen_addr) Some(listen_addr)
} else { } else {

View File

@ -38,7 +38,7 @@ async fn returns_200_ok() {
}; };
let (listening_socket, server) = http_metrics::serve(ctx, server_shutdown).unwrap(); let (listening_socket, server) = http_metrics::serve(ctx, server_shutdown).unwrap();
tokio::spawn(async { server.await }); tokio::spawn(server);
let url = format!( let url = format!(
"http://{}:{}/metrics", "http://{}:{}/metrics",

View File

@ -1,4 +1,4 @@
///! The subnet predicate used for searching for a particular subnet. //! The subnet predicate used for searching for a particular subnet.
use super::*; use super::*;
use crate::types::{EnrAttestationBitfield, EnrSyncCommitteeBitfield}; use crate::types::{EnrAttestationBitfield, EnrSyncCommitteeBitfield};
use slog::trace; use slog::trace;

View File

@ -1,4 +1,4 @@
///! This implements a time-based LRU cache for fast checking of duplicates //! This implements a time-based LRU cache for fast checking of duplicates
use fnv::FnvHashSet; use fnv::FnvHashSet;
use std::collections::VecDeque; use std::collections::VecDeque;
use std::time::{Duration, Instant}; use std::time::{Duration, Instant};

View File

@ -146,7 +146,7 @@ impl<T: EthSpec> ProductionValidatorClient<T> {
context context
.clone() .clone()
.executor .executor
.spawn_without_exit(async move { server.await }, "metrics-api"); .spawn_without_exit(server, "metrics-api");
Some(ctx) Some(ctx)
} else { } else {
@ -590,7 +590,7 @@ impl<T: EthSpec> ProductionValidatorClient<T> {
self.context self.context
.clone() .clone()
.executor .executor
.spawn_without_exit(async move { server.await }, "http-api"); .spawn_without_exit(server, "http-api");
Some(listen_addr) Some(listen_addr)
} else { } else {