From 8b4027e3d6918c8ca5f235c0dcdd531e7f2778b2 Mon Sep 17 00:00:00 2001 From: pcmid Date: Mon, 25 Oct 2021 16:46:30 +0800 Subject: [PATCH] Format: cargo fmt --- crates/librqbit/src/http_api.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/librqbit/src/http_api.rs b/crates/librqbit/src/http_api.rs index dcff7a5..e815fbc 100644 --- a/crates/librqbit/src/http_api.rs +++ b/crates/librqbit/src/http_api.rs @@ -181,10 +181,10 @@ impl ApiInternal { managed.output_folder ), AddTorrentResponse::ListOnly(ListOnlyResponse { - info_hash, - info, - only_files, - }) => ApiAddTorrentResponse { + info_hash, + info, + only_files, + }) => ApiAddTorrentResponse { id: None, details: make_torrent_details(&info_hash, &info, only_files.as_deref()), }, @@ -325,7 +325,7 @@ impl HttpApi { // clippy suggests something that doesn't work here. #[allow(clippy::redundant_closure)] - move || match inner.dht.as_ref() { + move || match inner.dht.as_ref() { Some(dht) => dht.with_routing_table(|r| json_response(r)), None => not_found_response("DHT is off".into()), }