mirror of
https://github.com/actix/actix-web.git
synced 2024-12-30 12:00:38 +00:00
replace deprecated fn
This commit is contained in:
parent
2e159d1eb9
commit
724e9c2efb
2 changed files with 4 additions and 4 deletions
|
@ -42,7 +42,7 @@ script:
|
|||
after_success:
|
||||
- |
|
||||
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_RUST_VERSION" == "stable" ]]; then
|
||||
cargo doc --all-features --no-deps &&
|
||||
cargo doc --all-features &&
|
||||
echo "<meta http-equiv=refresh content=0;url=os_balloon/index.html>" > target/doc/index.html &&
|
||||
git clone https://github.com/davisp/ghp-import.git &&
|
||||
./ghp-import/ghp_import.py -n -p -f -m "Documentation upload" -r https://"$GH_TOKEN"@github.com/"$TRAVIS_REPO_SLUG.git" target/doc &&
|
||||
|
|
|
@ -8,7 +8,7 @@ use actix_http::encoding::{Decoder, Encoder};
|
|||
use actix_server_config::ServerConfig;
|
||||
use actix_service::boxed::{self, BoxedNewService};
|
||||
use actix_service::{
|
||||
ApplyTransform, IntoNewService, IntoTransform, NewService, Transform,
|
||||
apply_transform, IntoNewService, IntoTransform, NewService, Transform,
|
||||
};
|
||||
#[cfg(any(feature = "brotli", feature = "flate2-zlib", feature = "flate2-rust"))]
|
||||
use bytes::Bytes;
|
||||
|
@ -138,7 +138,7 @@ where
|
|||
F: IntoTransform<M, AppRouting<Out>>,
|
||||
{
|
||||
let fref = Rc::new(RefCell::new(None));
|
||||
let endpoint = ApplyTransform::new(mw, AppEntry::new(fref.clone()));
|
||||
let endpoint = apply_transform(mw, AppEntry::new(fref.clone()));
|
||||
AppRouter {
|
||||
endpoint,
|
||||
chain: self.chain,
|
||||
|
@ -426,7 +426,7 @@ where
|
|||
B1: MessageBody,
|
||||
F: IntoTransform<M, T::Service>,
|
||||
{
|
||||
let endpoint = ApplyTransform::new(mw, self.endpoint);
|
||||
let endpoint = apply_transform(mw, self.endpoint);
|
||||
AppRouter {
|
||||
endpoint,
|
||||
chain: self.chain,
|
||||
|
|
Loading…
Reference in a new issue