1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-21 05:05:44 +02:00

replace tinyvec with smallvec (#1866)

This commit is contained in:
fakeshadow
2021-01-02 07:18:25 +08:00
committed by GitHub
parent 522c9a5ea6
commit 3beb4cf2da
3 changed files with 13 additions and 9 deletions

View File

@@ -10,7 +10,6 @@ use actix_router::{Path, ResourceDef, ResourceInfo, Router, Url};
use actix_service::boxed::{self, BoxService, BoxServiceFactory};
use actix_service::{fn_service, Service, ServiceFactory};
use futures_util::future::{join_all, ok, FutureExt, LocalBoxFuture};
use tinyvec::tiny_vec;
use crate::config::{AppConfig, AppService};
use crate::data::{DataFactory, FnDataFactory};
@@ -246,7 +245,6 @@ where
inner.path.reset();
inner.head = head;
inner.payload = payload;
inner.app_data = tiny_vec![self.data.clone()];
req
} else {
HttpRequest::new(