Update client.rs

Use generic for batch_transaction_get
This commit is contained in:
Riccardo Casatta 2020-03-12 15:35:03 +01:00 committed by Alekos Filini
parent cccb808e6f
commit 85389ccaa0
No known key found for this signature in database
GPG Key ID: 5E8AFC3034FDFA4F

View File

@ -595,10 +595,7 @@ impl<S: Read + Write> Client<S> {
/// Batch version of [`transaction_get`](#method.transaction_get).
///
/// Takes a list of `txids` and returns a list of transactions.
pub fn batch_transaction_get<'t, I>(
&mut self,
txids: Vec<&Txid>,
) -> Result<Vec<Transaction>, Error>
pub fn batch_transaction_get<'t, I>(&mut self, txids: I) -> Result<Vec<Transaction>, Error>
where
I: IntoIterator<Item = &'t Txid>,
{