Skip to content

Commit

Permalink
Appease clippy in Rust 1.70 (#4365)
Browse files Browse the repository at this point in the history
## Issue Addressed

NA

## Proposed Changes

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

## Additional Info

NA
  • Loading branch information
paulhauner committed Jun 2, 2023
1 parent 4af4e98 commit d07c78b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion beacon_node/client/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ where

runtime_context
.executor
.spawn_without_exit(async move { server.await }, "http-metrics");
.spawn_without_exit(server, "http-metrics");

Some(listen_addr)
} else {
Expand Down
2 changes: 1 addition & 1 deletion beacon_node/http_metrics/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async fn returns_200_ok() {
};
let (listening_socket, server) = http_metrics::serve(ctx, server_shutdown).unwrap();

tokio::spawn(async { server.await });
tokio::spawn(server);

let url = format!(
"http://{}:{}/metrics",
Expand Down
Original file line number Diff line number Diff line change
@@ -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 crate::types::{EnrAttestationBitfield, EnrSyncCommitteeBitfield};
use slog::trace;
Expand Down
2 changes: 1 addition & 1 deletion common/lru_cache/src/time.rs
Original file line number Diff line number Diff line change
@@ -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 std::collections::VecDeque;
use std::time::{Duration, Instant};
Expand Down
4 changes: 2 additions & 2 deletions validator_client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl<T: EthSpec> ProductionValidatorClient<T> {
context
.clone()
.executor
.spawn_without_exit(async move { server.await }, "metrics-api");
.spawn_without_exit(server, "metrics-api");

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

Some(listen_addr)
} else {
Expand Down

0 comments on commit d07c78b

Please sign in to comment.