From c384f763cded717713814f4a752fece07068b2e5 Mon Sep 17 00:00:00 2001 From: Simon Gasse Date: Mon, 5 Sep 2022 18:44:05 +0200 Subject: [PATCH] Fix outdated docstring of some RequestExt functions The PR #253 removed some of the `#[cfg(test)]` guards for a few functions which are useful in testing outside of the library. However the docstrings still stated that the test configuration was needed. This commit fixes the docstrings. --- lambda-http/src/ext.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lambda-http/src/ext.rs b/lambda-http/src/ext.rs index 0cd85982..afeb9050 100644 --- a/lambda-http/src/ext.rs +++ b/lambda-http/src/ext.rs @@ -125,7 +125,7 @@ pub trait RequestExt { /// will yield an empty `QueryMap`. fn query_string_parameters(&self) -> QueryMap; - /// Configures instance with query string parameters under #[cfg(test)] configurations + /// Configures instance with query string parameters /// /// This is intended for use in mock testing contexts. fn with_query_string_parameters(self, parameters: Q) -> Self @@ -140,7 +140,7 @@ pub trait RequestExt { /// These will always be empty for ALB triggered requests fn path_parameters(&self) -> QueryMap; - /// Configures instance with path parameters under #[cfg(test)] configurations + /// Configures instance with path parameters /// /// This is intended for use in mock testing contexts. fn with_path_parameters

(self, parameters: P) -> Self