From 44211b27d80725641304ef6843d1c44eae351e6c Mon Sep 17 00:00:00 2001 From: Yong Wen Chua Date: Mon, 6 Nov 2017 10:57:25 +0800 Subject: [PATCH] Use `pub(crate)` visibility for internal Response --- src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index adafc01..63af650 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1171,9 +1171,8 @@ impl Cors { /// - `Vary` /// /// You can get this struct by using `Cors::validate_request` in an ad-hoc manner. -#[doc(hidden)] #[derive(Eq, PartialEq, Debug)] -pub struct Response { +pub(crate) struct Response { allow_origin: Option>, allow_methods: HashSet, allow_headers: HeaderFieldNamesSet,