Unverified Commit 119c87ca authored by ysaito1001's avatar ysaito1001 Committed by GitHub
Browse files

Rework addressing code review feedback in smithy-rs#3859 (#3860)

## Motivation and Context

https://github.com/smithy-lang/smithy-rs/commit/1dbf37a5f4750f0a7833dca23a87a4ddf676b1e9
didn't address [code review
feedback](https://github.com/smithy-lang/smithy-rs/pull/3859#discussion_r1786751065)
correctly. This PR will fix it.

## Testing
Tests in CI

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent e7f10319
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -18,11 +18,11 @@ fn stub_config(http_client: impl HttpClient + 'static) -> Config {
        .build()
}

fn validate_query_string(expected: &str, actual: &str) {
    let expected = expected.split('&').collect::<HashSet<&str>>();
    let actual = actual.split('&').collect::<HashSet<&str>>();
fn validate_query_string(expected_str: &str, actual_str: &str) {
    assert_eq!(expected_str.len(), actual_str.len());
    let expected = expected_str.split('&').collect::<HashSet<_>>();
    let actual = actual_str.split('&').collect::<HashSet<_>>();
    assert_eq!(expected, actual);
    assert_eq!(expected.len(), actual.len());
}

/// See https://github.com/awslabs/aws-sdk-rust/issues/391