Cargo clippy: fix the majority of errors
This commit is contained in:
parent
871d927596
commit
6968a4e449
19 changed files with 69 additions and 91 deletions
|
|
@ -116,7 +116,7 @@ impl TorrentManagerHandle {
|
|||
pub fn add_tracker(&self, url: Url) -> bool {
|
||||
let mgr = self.manager.clone();
|
||||
if mgr.trackers.lock().insert(url.clone()) {
|
||||
spawn(format!("tracker monitor {}", url), async move {
|
||||
spawn(format!("tracker monitor {url}"), async move {
|
||||
mgr.single_tracker_monitor(url).await
|
||||
});
|
||||
true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue