From 1d195a2cf2668e6f02ef1c2b491db29e81bda3d3 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Fri, 29 Dec 2017 09:16:50 -0800 Subject: [PATCH] make Pipeline private --- src/lib.rs | 1 - src/pipeline.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ec1aebe48..e453a2013 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -170,7 +170,6 @@ pub mod dev { pub use handler::Handler; pub use json::JsonBody; pub use router::{Router, Pattern}; - pub use pipeline::Pipeline; pub use channel::{HttpChannel, HttpHandler, IntoHttpHandler}; pub use param::{FromParam, Params}; pub use httprequest::UrlEncoded; diff --git a/src/pipeline.rs b/src/pipeline.rs index 80c1a19c2..473f2f9bd 100644 --- a/src/pipeline.rs +++ b/src/pipeline.rs @@ -17,11 +17,11 @@ use httpresponse::HttpResponse; use middleware::{Middleware, Finished, Started, Response}; use application::Inner; -pub trait PipelineHandler { +pub(crate) trait PipelineHandler { fn handle(&mut self, req: HttpRequest) -> Reply; } -pub struct Pipeline(PipelineInfo, PipelineState); +pub(crate) struct Pipeline(PipelineInfo, PipelineState); enum PipelineState { None,