Format: cargo fmt

This commit is contained in:
pcmid 2021-10-25 16:46:30 +08:00
parent 188055c812
commit 8b4027e3d6
No known key found for this signature in database
GPG key ID: ABB53028C38EA9E0

View file

@ -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()),
}