tari-project / universe

Other
8 stars 24 forks source link

fix(tor): cdn_tor_bundle_url value moved #907

Closed mmrrnn closed 6 days ago

mmrrnn commented 6 days ago
error[E0382]: use of moved value: `cdn_tor_bundle_url`
  --> src/binaries/adapter_tor.rs:29:40
   |
21 |         let cdn_tor_bundle_url = format!(
   |             ------------------ move occurs because `cdn_tor_bundle_url` has type `std::string::String`, which does not implement the `Copy` trait
...
28 |         for _ in 0..3 {
   |         ------------- inside of this loop
29 |             let response = client.head(cdn_tor_bundle_url).send().await;
   |                                        ^^^^^^^^^^^^^^^^^^ value moved here, in previous iteration of loop
   |