From 4d131ac1746eee95c9035b29036fa1fd5ffb577c Mon Sep 17 00:00:00 2001 From: fakeshadow <24548779@qq.com> Date: Thu, 29 Oct 2020 01:48:03 +0800 Subject: [PATCH] fix attributes --- actix-rt/src/lib.rs | 1 + actix-testing/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/actix-rt/src/lib.rs b/actix-rt/src/lib.rs index 9627eee6..8d12e88f 100644 --- a/actix-rt/src/lib.rs +++ b/actix-rt/src/lib.rs @@ -1,4 +1,5 @@ //! A runtime implementation that runs everything on the current thread. +#![deny(rust_2018_idioms, warnings)] #![forbid(unsafe_code)] use std::future::Future; diff --git a/actix-testing/src/lib.rs b/actix-testing/src/lib.rs index 4bf7015a..42bba401 100644 --- a/actix-testing/src/lib.rs +++ b/actix-testing/src/lib.rs @@ -90,7 +90,7 @@ impl TestServer { .unwrap() .workers(1) .disable_signals() - .start() + .start(); }); tx.send((System::current(), local_addr)).unwrap();