mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-21 22:56:46 +01:00
Enable println
warning (#1929)
This commit is contained in:
parent
377d73a55b
commit
39bb28130d
6 changed files with 5 additions and 3 deletions
2
.github/workflows/CI.yml
vendored
2
.github/workflows/CI.yml
vendored
|
@ -29,7 +29,7 @@ jobs:
|
|||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: clippy
|
||||
args: --workspace --all-targets --all-features
|
||||
args: --workspace --all-targets --all-features -- -D warnings
|
||||
- name: rustfmt
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
#![allow(elided_lifetimes_in_paths, clippy::type_complexity)]
|
||||
#![forbid(unsafe_code)]
|
||||
#![cfg_attr(test, allow(clippy::float_cmp))]
|
||||
#![cfg_attr(not(test), warn(clippy::print_stdout, clippy::dbg_macro))]
|
||||
|
||||
#[macro_use]
|
||||
pub(crate) mod macros;
|
||||
|
|
|
@ -64,6 +64,7 @@
|
|||
#![forbid(unsafe_code)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
#![cfg_attr(test, allow(clippy::float_cmp))]
|
||||
#![cfg_attr(not(test), warn(clippy::print_stdout, clippy::dbg_macro))]
|
||||
|
||||
#[allow(unused_extern_crates)]
|
||||
extern crate self as axum_extra;
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
#![forbid(unsafe_code)]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![cfg_attr(test, allow(clippy::float_cmp))]
|
||||
#![cfg_attr(not(test), warn(clippy::print_stdout, clippy::dbg_macro))]
|
||||
|
||||
use proc_macro::TokenStream;
|
||||
use quote::{quote, ToTokens};
|
||||
|
|
|
@ -399,7 +399,6 @@
|
|||
|
||||
#![warn(
|
||||
clippy::all,
|
||||
clippy::dbg_macro,
|
||||
clippy::todo,
|
||||
clippy::empty_enum,
|
||||
clippy::enum_glob_use,
|
||||
|
@ -437,6 +436,7 @@
|
|||
#![forbid(unsafe_code)]
|
||||
#![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg))]
|
||||
#![cfg_attr(test, allow(clippy::float_cmp))]
|
||||
#![cfg_attr(not(test), warn(clippy::print_stdout, clippy::dbg_macro))]
|
||||
|
||||
#[macro_use]
|
||||
pub(crate) mod macros;
|
||||
|
|
|
@ -30,7 +30,6 @@ async fn main() {
|
|||
let start_time = Instant::now();
|
||||
//spawn several clients that will concurrently talk to the server
|
||||
let mut clients = (0..N_CLIENTS)
|
||||
.into_iter()
|
||||
.map(|cli| tokio::spawn(spawn_client(cli)))
|
||||
.collect::<FuturesUnordered<_>>();
|
||||
|
||||
|
|
Loading…
Reference in a new issue