From 5615767ca6c5b3357f691ccd65622470fc0185a5 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Thu, 15 Oct 2020 00:46:30 -0700 Subject: [PATCH] Add proper 'cfg' to 'get_private_pending()'. --- core/http/src/cookies.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/http/src/cookies.rs b/core/http/src/cookies.rs index 935c432f..38ecdccb 100644 --- a/core/http/src/cookies.rs +++ b/core/http/src/cookies.rs @@ -295,6 +295,8 @@ impl<'a> CookieJar<'a> { /// let pending_cookie = jar.get_private_pending("name"); /// } /// ``` + #[cfg(feature = "private-cookies")] + #[cfg_attr(nightly, doc(cfg(feature = "secrets")))] pub fn get_private_pending(&self, name: &str) -> Option> { let cookie = self.get_pending(name)?; self.jar.private(&*self.key).decrypt(cookie)