Skip to content

Commit e345e61

Browse files
authored
chore: clippy auto fixes (#198)
* chore: clippy auto fixes * more auto fixes in another package
1 parent ac5ae75 commit e345e61

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

rpc-client/src/client.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ use std::str::FromStr;
1616
use std::{fmt, result};
1717

1818
use crate::dashcore;
19-
use jsonrpc;
20-
use serde;
2119
use serde_json::{self, Value};
2220

2321
use crate::Error::UnexpectedStructure;
@@ -56,11 +54,11 @@ impl From<OutPoint> for JsonOutPoint {
5654
}
5755
}
5856

59-
impl Into<OutPoint> for JsonOutPoint {
60-
fn into(self) -> OutPoint {
57+
impl From<JsonOutPoint> for OutPoint {
58+
fn from(val: JsonOutPoint) -> Self {
6159
OutPoint {
62-
txid: self.txid,
63-
vout: self.vout,
60+
txid: val.txid,
61+
vout: val.vout,
6462
}
6563
}
6664
}

rpc-client/src/error.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ use std::{error, fmt, io};
1313
use crate::dashcore;
1414
use dashcore::hashes::hex;
1515
use dashcore::secp256k1;
16-
use jsonrpc;
17-
use serde_json;
1816

1917
pub type OldVecLen = usize;
2018
pub type FixedSizeLen = usize;

rpc-client/src/queryable.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
//
1010

1111
use crate::dashcore;
12-
use serde_json;
1312

1413
use crate::client::Result;
1514
use crate::client::RpcApi;

rpc-json/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
#![crate_type = "rlib"]
1818

1919
pub use dashcore;
20-
use serde;
21-
use serde_json;
22-
use serde_with;
2320

2421
use bincode::{Decode, Encode};
2522
use serde_repr::*;

0 commit comments

Comments
 (0)