1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-09-03 01:56:38 +02:00

Fix clippy::rc_buffer (#1728)

This commit is contained in:
Jonas Platte
2020-10-10 02:26:05 +02:00
committed by GitHub
parent 34b23f31c9
commit d765e9099d
6 changed files with 31 additions and 29 deletions

View File

@@ -459,8 +459,8 @@ where
{
fn into_factory(self) -> AppInit<T, B> {
AppInit {
data: Rc::new(self.data),
data_factories: Rc::new(self.data_factories),
data: self.data.into_boxed_slice().into(),
data_factories: self.data_factories.into_boxed_slice().into(),
endpoint: self.endpoint,
services: Rc::new(RefCell::new(self.services)),
external: RefCell::new(self.external),