Skip to content

Commit b73a797

Browse files
committed
Fixed clippy errors
1 parent f10bcb5 commit b73a797

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/tests/krate.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,7 @@ fn publish_after_removing_documentation() {
15941594
// Verify that crates start without any documentation so the next assertion can *prove*
15951595
// that it was the one that added the documentation
15961596
{
1597-
let mut req = ::req(app.clone(), Method::Get, "/api/v1/crates/docscrate");
1597+
let mut req = ::req(Arc::clone(&app), Method::Get, "/api/v1/crates/docscrate");
15981598
let mut response = ok_resp!(middle.call(&mut req));
15991599
let json: CrateResponse = ::json(&mut response);
16001600
assert_eq!(json.krate.documentation, None);
@@ -1603,7 +1603,7 @@ fn publish_after_removing_documentation() {
16031603
// 2. Add documentation
16041604
{
16051605
let mut req = ::new_req_with_documentation(
1606-
app.clone(),
1606+
Arc::clone(&app),
16071607
"docscrate",
16081608
"0.2.1",
16091609
Some("http://foo.rs".to_owned()),
@@ -1616,15 +1616,15 @@ fn publish_after_removing_documentation() {
16161616

16171617
// Ensure latest version also has the same documentation
16181618
{
1619-
let mut req = ::req(app.clone(), Method::Get, "/api/v1/crates/docscrate");
1619+
let mut req = ::req(Arc::clone(&app), Method::Get, "/api/v1/crates/docscrate");
16201620
let mut response = ok_resp!(middle.call(&mut req));
16211621
let json: CrateResponse = ::json(&mut response);
16221622
assert_eq!(json.krate.documentation, Some("http://foo.rs".to_owned()));
16231623
}
16241624

16251625
// 3. Remove the documentation
16261626
{
1627-
let mut req = ::new_req_with_documentation(app.clone(), "docscrate", "0.2.2", None);
1627+
let mut req = ::new_req_with_documentation(Arc::clone(&app), "docscrate", "0.2.2", None);
16281628
::sign_in_as(&mut req, &user);
16291629
let mut response = ok_resp!(middle.call(&mut req));
16301630
let json: GoodCrate = ::json(&mut response);
@@ -1633,7 +1633,7 @@ fn publish_after_removing_documentation() {
16331633

16341634
// Ensure latest version no longer has documentation
16351635
{
1636-
let mut req = ::req(app.clone(), Method::Get, "/api/v1/crates/docscrate");
1636+
let mut req = ::req(Arc::clone(&app), Method::Get, "/api/v1/crates/docscrate");
16371637
let mut response = ok_resp!(middle.call(&mut req));
16381638
let json: CrateResponse = ::json(&mut response);
16391639
assert_eq!(json.krate.documentation, None);

0 commit comments

Comments
 (0)