From 47dbc832f82f32b8060b91df6412d2256c42bd9b Mon Sep 17 00:00:00 2001 From: "Brian L. Troutwine" Date: Fri, 23 Jul 2021 08:09:26 -0700 Subject: [PATCH] clippy dings, redux Signed-off-by: Brian L. Troutwine --- lading_blackholes/src/bin/http_blackhole.rs | 4 +--- lading_blackholes/src/bin/udp_blackhole.rs | 1 - lading_generators/src/bin/file_gen.rs | 2 -- lading_generators/src/bin/http_gen.rs | 2 -- 4 files changed, 1 insertion(+), 8 deletions(-) diff --git a/lading_blackholes/src/bin/http_blackhole.rs b/lading_blackholes/src/bin/http_blackhole.rs index e207bcc00..367c82c5c 100644 --- a/lading_blackholes/src/bin/http_blackhole.rs +++ b/lading_blackholes/src/bin/http_blackhole.rs @@ -1,5 +1,3 @@ -#![allow(clippy::nonstandard_macro_braces)] - use argh::FromArgs; use hyper::server::conn::{AddrIncoming, AddrStream}; use hyper::service::{make_service_fn, service_fn}; @@ -55,8 +53,8 @@ async fn srv(req: Request) -> Result, hyper::Error> { impl HttpServer { fn new(httpd_addr: SocketAddr, prometheus_addr: SocketAddr) -> Self { Self { - httpd_addr, prometheus_addr, + httpd_addr, } } diff --git a/lading_blackholes/src/bin/udp_blackhole.rs b/lading_blackholes/src/bin/udp_blackhole.rs index 054263412..300efc7fa 100644 --- a/lading_blackholes/src/bin/udp_blackhole.rs +++ b/lading_blackholes/src/bin/udp_blackhole.rs @@ -1,4 +1,3 @@ -#![allow(clippy::nonstandard_macro_braces)] use argh::FromArgs; use metrics::counter; use std::io; diff --git a/lading_generators/src/bin/file_gen.rs b/lading_generators/src/bin/file_gen.rs index 4cef09aef..4d02e787c 100644 --- a/lading_generators/src/bin/file_gen.rs +++ b/lading_generators/src/bin/file_gen.rs @@ -1,5 +1,3 @@ -#![allow(clippy::nonstandard_macro_braces)] - use argh::FromArgs; use futures::stream::{FuturesUnordered, StreamExt}; use lading_generators::file_gen::config::{Config, LogTargetTemplate}; diff --git a/lading_generators/src/bin/http_gen.rs b/lading_generators/src/bin/http_gen.rs index 90070d703..01e46385c 100644 --- a/lading_generators/src/bin/http_gen.rs +++ b/lading_generators/src/bin/http_gen.rs @@ -1,5 +1,3 @@ -#![allow(clippy::nonstandard_macro_braces)] - use argh::FromArgs; use futures::stream::{FuturesUnordered, StreamExt}; use lading_generators::http_gen::config::{Config, Target};