Skip to content

Commit 9b27da0

Browse files
authored
Fix outdated docstring of some RequestExt functions (#524)
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. Co-authored-by: Simon Gasse <sgasse@users.noreply.github.com>
1 parent 756dfc4 commit 9b27da0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lambda-http/src/ext.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ pub trait RequestExt {
125125
/// will yield an empty `QueryMap`.
126126
fn query_string_parameters(&self) -> QueryMap;
127127

128-
/// Configures instance with query string parameters under #[cfg(test)] configurations
128+
/// Configures instance with query string parameters
129129
///
130130
/// This is intended for use in mock testing contexts.
131131
fn with_query_string_parameters<Q>(self, parameters: Q) -> Self
@@ -140,7 +140,7 @@ pub trait RequestExt {
140140
/// These will always be empty for ALB triggered requests
141141
fn path_parameters(&self) -> QueryMap;
142142

143-
/// Configures instance with path parameters under #[cfg(test)] configurations
143+
/// Configures instance with path parameters
144144
///
145145
/// This is intended for use in mock testing contexts.
146146
fn with_path_parameters<P>(self, parameters: P) -> Self

0 commit comments

Comments
 (0)