-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace bool with enum for a function parameter of label::fmt_string (#…
…1875) * Replace bool with enum in label::fmt_string This commit addresses code smell where the said function takes a bool to decide whether it percent-encodes the UTF-8 encoding of the given string. For clarity, we define an enum EncodingStrategy so that we can see the callers' intent at the call sites by reading the variant names rather than true/false. * Update CHANGELOG.next.toml * Update CHANGELOG.next.toml Co-authored-by: John DiSanti <[email protected]> * Make test use updated function signature of fmt_string This commit modifies a call site for the updated function signature of `aws_smithy_http::label::fmt_string`, otherwise the test would fail to compile, leading to a failure in CI. Co-authored-by: Saito <[email protected]> Co-authored-by: John DiSanti <[email protected]> Co-authored-by: Zelda Hessler <[email protected]>
- Loading branch information
1 parent
7e666da
commit b4f294c
Showing
5 changed files
with
37 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters