rename struct to CallResult

This commit is contained in:
Riccardo Casatta 2021-06-01 14:17:37 +02:00
parent dffb753ce3
commit 9b7ed08891
No known key found for this signature in database
GPG Key ID: FD986A969E450397

View File

@ -403,11 +403,11 @@ fn list_wallet_dir(client: &Client) -> Result<Vec<String>, Error> {
name: String,
}
#[derive(Deserialize)]
struct Result {
struct CallResult {
wallets: Vec<Name>,
}
let result: Result = client.call("listwalletdir", &[])?;
let result: CallResult = client.call("listwalletdir", &[])?;
Ok(result.wallets.into_iter().map(|n| n.name).collect())
}