From b8b93778e286037189c42c513c741bf186510239 Mon Sep 17 00:00:00 2001 From: Martin Bartlett Date: Fri, 27 Oct 2023 15:02:40 +0200 Subject: [PATCH] Remove cfg(test) on with_stage_variables None of the other with_ methods are constrained to test-only, although this method did have a specific comment indicating test-only, so there may have been a reason. Anyway, this commit removes that constraint. --- lambda-http/src/ext/extensions.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lambda-http/src/ext/extensions.rs b/lambda-http/src/ext/extensions.rs index e002d0ea..313090c6 100644 --- a/lambda-http/src/ext/extensions.rs +++ b/lambda-http/src/ext/extensions.rs @@ -108,10 +108,9 @@ pub trait RequestExt { /// These will always be `None` for ALB triggered requests. fn stage_variables_ref(&self) -> Option<&QueryMap>; - /// Configures instance with stage variables under `#[cfg(test)]` configurations + /// Configures instance with stage variables /// /// This is intended for use in mock testing contexts. - #[cfg(test)] fn with_stage_variables(self, variables: V) -> Self where V: Into; @@ -216,7 +215,6 @@ impl RequestExt for http::Extensions { .and_then(|StageVariables(vars)| if vars.is_empty() { None } else { Some(vars) }) } - #[cfg(test)] fn with_stage_variables(self, variables: V) -> Self where V: Into, @@ -318,7 +316,6 @@ impl RequestExt for Parts { self.extensions.stage_variables_ref() } - #[cfg(test)] fn with_stage_variables(self, variables: V) -> Self where V: Into, @@ -420,7 +417,6 @@ impl RequestExt for http::Request { self.extensions().stage_variables_ref() } - #[cfg(test)] fn with_stage_variables(self, variables: V) -> Self where V: Into,