Skip to content

Commit

Permalink
rm unuse deps
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Jun 19, 2024
1 parent f769e5e commit 92294b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use json::bitcoin::Txid;
use jsonrpc_async;
use log::Level::{Debug, Trace, Warn};
use serde::{self, Serialize};
use serde_json::{self, json, Map};
use serde_json::{self, Map};

use crate::error::*;
use crate::json;
Expand Down Expand Up @@ -892,7 +892,7 @@ pub trait RpcApi: Sized {
) -> Result<Vec<json::TestMempoolAcceptResult>> {
let hexes: Vec<serde_json::Value> =
rawtxs.to_vec().into_iter().map(|r| r.raw_hex().into()).collect();
let mut args = [into_json(hexes)?, opt_into_json(max_fee_rate)?];
let args = [into_json(hexes)?, opt_into_json(max_fee_rate)?];
self.call("testmempoolaccept", &args).await
}

Expand Down Expand Up @@ -1121,7 +1121,7 @@ pub trait RpcApi: Sized {
tx: R,
max_fee_rate: Option<u64>,
) -> Result<bitcoin::Txid> {
let mut args = [into_json(tx.raw_hex())?, opt_into_json(max_fee_rate)?];
let args = [into_json(tx.raw_hex())?, opt_into_json(max_fee_rate)?];
self.call("sendrawtransaction", &args).await
}

Expand Down
2 changes: 1 addition & 1 deletion json/src/vault.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{fmt, collections::HashMap};
use serde::{
de::{Error, MapAccess, Visitor},
de::{Error, Visitor},
Deserialize, Deserializer, Serialize, Serializer,
};

Expand Down

0 comments on commit 92294b8

Please sign in to comment.