Skip to content

Commit bb1c41b

Browse files
Fahad Zubairrcoh
authored andcommitted
Fix clippy warnings in aws-smithy-legacy-http
1 parent c0c21ee commit bb1c41b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

rust-runtime/aws-smithy-legacy-http/src/endpoint.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub fn apply_endpoint(
3232
.map(|auth| auth.as_str())
3333
.unwrap_or("");
3434
let authority = if !prefix.is_empty() {
35-
Cow::Owned(format!("{}{}", prefix, authority))
35+
Cow::Owned(format!("{prefix}{authority}"))
3636
} else {
3737
Cow::Borrowed(authority)
3838
};
@@ -66,6 +66,6 @@ fn merge_paths<'a>(endpoint: &'a http_1x::Uri, uri: &'a http_1x::Uri) -> Cow<'a,
6666
let uri_path_no_slash = uri_path_and_query
6767
.strip_prefix('/')
6868
.unwrap_or(uri_path_and_query);
69-
Cow::Owned(format!("{}/{}", ep_no_slash, uri_path_no_slash))
69+
Cow::Owned(format!("{ep_no_slash}/{uri_path_no_slash}"))
7070
}
7171
}

rust-runtime/aws-smithy-legacy-http/src/header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub fn many_dates<'a>(
6464
let mut header = header;
6565
while !header.is_empty() {
6666
let (v, next) = DateTime::read(header, format, ',').map_err(|err| {
67-
ParseError::new(format!("header could not be parsed as date: {}", err))
67+
ParseError::new(format!("header could not be parsed as date: {err}"))
6868
})?;
6969
out.push(v);
7070
header = next;

rust-runtime/aws-smithy-legacy-http/src/query_writer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ mod test {
162162
}
163163

164164
if !problematic_chars.is_empty() {
165-
panic!("we got some bad bytes here: {:#?}", problematic_chars)
165+
panic!("we got some bad bytes here: {problematic_chars:#?}")
166166
}
167167
}
168168

0 commit comments

Comments
 (0)