From 63d2ec501c7c0cbb48321fa14fe3449dd110a077 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Fri, 9 Oct 2020 14:17:47 +0200 Subject: [PATCH] Allow clippy::rc_buffer only where it's not easily fixed --- src/lib.rs | 1 - src/route.rs | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index edc8456ba..327cba954 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -67,7 +67,6 @@ #![deny(rust_2018_idioms)] #![allow(clippy::needless_doctest_main, clippy::type_complexity)] -#![allow(clippy::rc_buffer)] // FXIME: We should take a closer look for the warnings at some point. #![doc(html_logo_url = "https://actix.rs/img/logo.png")] #![doc(html_favicon_url = "https://actix.rs/favicon.ico")] diff --git a/src/route.rs b/src/route.rs index 129a67332..e9e9d1f5d 100644 --- a/src/route.rs +++ b/src/route.rs @@ -1,3 +1,5 @@ +#![allow(clippy::rc_buffer)] // inner value is mutated before being shared (`Rc::get_mut`) + use std::future::Future; use std::pin::Pin; use std::rc::Rc;