From c6467304a1676f8f9c853f53fe09a0de7017f115 Mon Sep 17 00:00:00 2001 From: fakeshadow <24548779@qq.com> Date: Thu, 29 Oct 2020 01:37:49 +0800 Subject: [PATCH] remove unused attributes. update changelog --- actix-rt/CHANGES.md | 4 +++- actix-rt/src/lib.rs | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/actix-rt/CHANGES.md b/actix-rt/CHANGES.md index 0560ad31..0b9ea4c1 100644 --- a/actix-rt/CHANGES.md +++ b/actix-rt/CHANGES.md @@ -8,7 +8,9 @@ ### Changed -* Deprecate `Arbiter::is_running`and `Arbiter::local_join`. `Arbiter::spawn` would panic when `System` is not in scope. [#207] +* Remove `'static` lifetime requirement for `Runtime::block_on` and `SystemRunner::block_on`. These functions would +accept a `&Self` when calling. Remove `'static` lifetime requirement for `System::run`. Deprecate `Arbiter::is_running` +and `Arbiter::local_join`. `Arbiter::spawn` would panic when `System` is not in scope. [#207] ### Fixed diff --git a/actix-rt/src/lib.rs b/actix-rt/src/lib.rs index 12ad478d..9627eee6 100644 --- a/actix-rt/src/lib.rs +++ b/actix-rt/src/lib.rs @@ -1,6 +1,5 @@ //! A runtime implementation that runs everything on the current thread. -#![deny(rust_2018_idioms, warnings)] -#![allow(clippy::type_complexity)] +#![forbid(unsafe_code)] use std::future::Future;