Skip to content

Commit b7951cd

Browse files
committed
Auto merge of #1878 - jtgeibel:clippy-fixes, r=smarnach
Remove two redundant clones identified by clippy nightly
2 parents 68a77de + 3ff8a09 commit b7951cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/controllers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ mod prelude {
5656
}
5757

5858
fn query_with_params(&self, new_params: IndexMap<String, String>) -> String {
59-
let mut params = self.query().clone();
59+
let mut params = self.query();
6060
params.extend(new_params);
6161
let query_string = url::form_urlencoded::Serializer::new(String::new())
6262
.extend_pairs(params)

src/tests/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ impl MockTokenUser {
529529
{
530530
let url = format!("/api/v1/crates/{}/owners", krate_name);
531531
let body = json!({ "owners": owners }).to_string();
532-
method(&self, &url, body.to_string().as_bytes())
532+
method(&self, &url, body.as_bytes())
533533
}
534534

535535
/// Add a user as an owner for a crate.

0 commit comments

Comments
 (0)