diff --git a/actix-rt/CHANGES.md b/actix-rt/CHANGES.md index 3a893297..5f52876d 100644 --- a/actix-rt/CHANGES.md +++ b/actix-rt/CHANGES.md @@ -1,5 +1,12 @@ # Changes +## [0.2.4] - 2019-07-17 + +### Changed + +* Avoid a copy of the Future when initializing the Box. #29 + + ## [0.2.3] - 2019-06-22 ### Added diff --git a/actix-rt/Cargo.toml b/actix-rt/Cargo.toml index a059c6e0..067219d7 100644 --- a/actix-rt/Cargo.toml +++ b/actix-rt/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-rt" -version = "0.2.3" +version = "0.2.4" authors = ["Nikolay Kim "] description = "Actix runtime" keywords = ["network", "framework", "async", "futures"] diff --git a/actix-service/src/transform.rs b/actix-service/src/transform.rs index 2f82a292..0e93bf72 100644 --- a/actix-service/src/transform.rs +++ b/actix-service/src/transform.rs @@ -6,17 +6,11 @@ use futures::{Async, Future, IntoFuture, Poll}; use crate::transform_err::{TransformFromErr, TransformMapInitErr}; use crate::{IntoNewService, NewService, Service}; -/// The `Transform` trait defines the interface of a Service factory. `Transform` -/// is often implemented for middleware, defining how to manufacture a -/// middleware Service. A Service that is manufactured by the factory takes +/// The `Transform` trait defines the interface of a Service factory. `Transform` +/// is often implemented for middleware, defining how to construct a +/// middleware Service. A Service that is constructed by the factory takes /// the Service that follows it during execution as a parameter, assuming -/// ownership of the next Service. A Service can be a variety of types, such -/// as (but not limited to) another middleware Service, an extractor Service, -/// other helper Services, or the request handler endpoint Service. -/// -/// A Service is created by the factory during server initialization. -/// -/// `Config` is a service factory configuration type. +/// ownership of the next Service. pub trait Transform { /// Requests handled by the service. type Request;