Format: cargo fmt
This commit is contained in:
parent
188055c812
commit
8b4027e3d6
1 changed files with 5 additions and 5 deletions
|
|
@ -181,10 +181,10 @@ impl ApiInternal {
|
||||||
managed.output_folder
|
managed.output_folder
|
||||||
),
|
),
|
||||||
AddTorrentResponse::ListOnly(ListOnlyResponse {
|
AddTorrentResponse::ListOnly(ListOnlyResponse {
|
||||||
info_hash,
|
info_hash,
|
||||||
info,
|
info,
|
||||||
only_files,
|
only_files,
|
||||||
}) => ApiAddTorrentResponse {
|
}) => ApiAddTorrentResponse {
|
||||||
id: None,
|
id: None,
|
||||||
details: make_torrent_details(&info_hash, &info, only_files.as_deref()),
|
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.
|
// clippy suggests something that doesn't work here.
|
||||||
#[allow(clippy::redundant_closure)]
|
#[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)),
|
Some(dht) => dht.with_routing_table(|r| json_response(r)),
|
||||||
None => not_found_response("DHT is off".into()),
|
None => not_found_response("DHT is off".into()),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue