Skip to content

Commit 7f92315

Browse files
committed
Fix: Remove to_str() call on &str
1 parent 94c9063 commit 7f92315

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

aws/codegen-aws-sdk/src/test/kotlin/software/amazon/smithy/rustsdk/EndpointOverrideMetricDecoratorTest.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,8 @@ class EndpointOverrideMetricDecoratorTest {
202202
.get("x-amz-user-agent")
203203
.expect("x-amz-user-agent header should be present");
204204
205-
let user_agent_str = user_agent.to_str().unwrap();
206205
assert!(
207-
!user_agent_str.contains("m/N"),
206+
!user_agent.contains("m/N"),
208207
"Metric 'N' should NOT be present when endpoint not overridden"
209208
);
210209
""",

0 commit comments

Comments
 (0)