chore: binary op

This commit is contained in:
George Miao 2022-11-05 14:57:12 -04:00 committed by Aleksandr
parent ed924a5a51
commit 3f59edec6e

View File

@ -746,7 +746,7 @@ impl TransClient {
add: TorrentAddArgs,
) -> Result<RpcResponse<TorrentAddedOrDuplicate>> {
assert!(
!(add.metainfo == None && add.filename == None),
add.metainfo.is_some() || add.filename.is_some(),
"Metainfo or Filename should be provided"
);
self.call(RpcRequest::torrent_add(add)).await