mirror of
https://github.com/kristoferssolo/transmission-rpc.git
synced 2025-10-21 20:10:37 +00:00
chore: binary op
This commit is contained in:
parent
ed924a5a51
commit
3f59edec6e
@ -746,7 +746,7 @@ impl TransClient {
|
|||||||
add: TorrentAddArgs,
|
add: TorrentAddArgs,
|
||||||
) -> Result<RpcResponse<TorrentAddedOrDuplicate>> {
|
) -> Result<RpcResponse<TorrentAddedOrDuplicate>> {
|
||||||
assert!(
|
assert!(
|
||||||
!(add.metainfo == None && add.filename == None),
|
add.metainfo.is_some() || add.filename.is_some(),
|
||||||
"Metainfo or Filename should be provided"
|
"Metainfo or Filename should be provided"
|
||||||
);
|
);
|
||||||
self.call(RpcRequest::torrent_add(add)).await
|
self.call(RpcRequest::torrent_add(add)).await
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user