From bd814d6f807da7c3149b9ff82dd3c1383b8ac596 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Fri, 5 Apr 2019 10:36:57 -0700 Subject: [PATCH] re-export trust-dns types --- actix-connect/src/lib.rs | 4 ++-- actix-service/src/transform.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/actix-connect/src/lib.rs b/actix-connect/src/lib.rs index bc61f290..5d4a6c62 100644 --- a/actix-connect/src/lib.rs +++ b/actix-connect/src/lib.rs @@ -17,6 +17,8 @@ pub mod ssl; #[cfg(feature = "uri")] mod uri; +pub use trust_dns_resolver::config::{ResolverConfig, ResolverOpts}; +pub use trust_dns_resolver::system_conf::read_system_conf; pub use trust_dns_resolver::{error::ResolveError, AsyncResolver}; pub use self::connect::{Address, Connect, Connection}; @@ -26,8 +28,6 @@ pub use self::resolver::{Resolver, ResolverFactory}; use actix_service::{NewService, Service, ServiceExt}; use tokio_tcp::TcpStream; -use trust_dns_resolver::config::{ResolverConfig, ResolverOpts}; -use trust_dns_resolver::system_conf::read_system_conf; #[doc(hidden)] #[deprecated(since = "0.1.2", note = "please use `actix_connect::TcpConnector`")] diff --git a/actix-service/src/transform.rs b/actix-service/src/transform.rs index 34b3d0c0..a57d1b40 100644 --- a/actix-service/src/transform.rs +++ b/actix-service/src/transform.rs @@ -8,7 +8,7 @@ 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 +/// middleware Service. A Service that is manufactured 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,