@@ -1594,7 +1594,7 @@ fn publish_after_removing_documentation() {
1594
1594
// Verify that crates start without any documentation so the next assertion can *prove*
1595
1595
// that it was the one that added the documentation
1596
1596
{
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" ) ;
1598
1598
let mut response = ok_resp ! ( middle. call( & mut req) ) ;
1599
1599
let json: CrateResponse = :: json ( & mut response) ;
1600
1600
assert_eq ! ( json. krate. documentation, None ) ;
@@ -1603,7 +1603,7 @@ fn publish_after_removing_documentation() {
1603
1603
// 2. Add documentation
1604
1604
{
1605
1605
let mut req = :: new_req_with_documentation (
1606
- app . clone ( ) ,
1606
+ Arc :: clone ( & app ) ,
1607
1607
"docscrate" ,
1608
1608
"0.2.1" ,
1609
1609
Some ( "http://foo.rs" . to_owned ( ) ) ,
@@ -1616,15 +1616,15 @@ fn publish_after_removing_documentation() {
1616
1616
1617
1617
// Ensure latest version also has the same documentation
1618
1618
{
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" ) ;
1620
1620
let mut response = ok_resp ! ( middle. call( & mut req) ) ;
1621
1621
let json: CrateResponse = :: json ( & mut response) ;
1622
1622
assert_eq ! ( json. krate. documentation, Some ( "http://foo.rs" . to_owned( ) ) ) ;
1623
1623
}
1624
1624
1625
1625
// 3. Remove the documentation
1626
1626
{
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 ) ;
1628
1628
:: sign_in_as ( & mut req, & user) ;
1629
1629
let mut response = ok_resp ! ( middle. call( & mut req) ) ;
1630
1630
let json: GoodCrate = :: json ( & mut response) ;
@@ -1633,7 +1633,7 @@ fn publish_after_removing_documentation() {
1633
1633
1634
1634
// Ensure latest version no longer has documentation
1635
1635
{
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" ) ;
1637
1637
let mut response = ok_resp ! ( middle. call( & mut req) ) ;
1638
1638
let json: CrateResponse = :: json ( & mut response) ;
1639
1639
assert_eq ! ( json. krate. documentation, None ) ;
0 commit comments