Skip to content

Commit c3abd3c

Browse files
chore(integration_test): resolve trivial warnings (unused imports/macros/params)
- Remove unused QuorumType and Log imports - Drop unused assert_deprecated macro - Prefix unused parameter and ignore unused fields Remaining warnings are dead_code for helper tests not invoked in main.
1 parent a5d2e0b commit c3abd3c

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

rpc-integration-test/src/main.rs

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
extern crate lazy_static;
1313
extern crate log;
1414

15-
use log::{Log, trace};
15+
use log::trace;
1616
use std::collections::{HashMap, HashSet};
1717
use std::str::FromStr;
1818

@@ -33,8 +33,7 @@ use dashcore_rpc::{
3333
use dashcore_rpc::dashcore::address::NetworkUnchecked;
3434
use dashcore_rpc::dashcore::{BlockHash, ProTxHash, QuorumHash, ScriptBuf};
3535
use dashcore_rpc::dashcore_rpc_json::{
36-
GetBlockTemplateModes, GetBlockTemplateRules, ProTxInfo, ProTxRevokeReason, QuorumType,
37-
ScanTxOutRequest,
36+
GetBlockTemplateModes, GetBlockTemplateRules, ProTxInfo, ProTxRevokeReason, ScanTxOutRequest,
3837
};
3938
use dashcore_rpc::json::ProTxListType;
4039
use dashcore_rpc::json::QuorumType::LlmqTest;
@@ -76,16 +75,6 @@ impl log::Log for StdLogger {
7675

7776
static LOGGER: StdLogger = StdLogger;
7877

79-
/// Assert that the call returns a "deprecated" error.
80-
macro_rules! assert_deprecated {
81-
($call:expr) => {
82-
match $call.unwrap_err() {
83-
Error::JsonRpc(JsonRpcError::Rpc(ref e)) if e.code == -32 => {}
84-
e => panic!("expected deprecated error for {}, got: {}", stringify!($call), e),
85-
}
86-
};
87-
}
88-
8978
/// Assert that the call returns a "method not found" error.
9079
macro_rules! assert_not_found {
9180
($call:expr) => {
@@ -1421,7 +1410,7 @@ fn test_get_quorum_dkgstatus(cl: &Client) {
14211410
// assert!(quorum_dkgstatus.minable_commitments.len() >= 0);
14221411
}
14231412

1424-
fn test_get_quorum_sign(cl: &Client, wallet_client: &Client) {
1413+
fn test_get_quorum_sign(cl: &Client, _wallet_client: &Client) {
14251414
let list = cl.get_quorum_list(Some(1)).unwrap();
14261415
let quorum_type = list.quorums_by_type.keys().next().unwrap().to_owned();
14271416

@@ -1533,9 +1522,9 @@ fn test_get_protx_info(cl: &Client) {
15331522
let ProTxInfo {
15341523
pro_tx_hash: _,
15351524
collateral_hash: _,
1536-
collateral_index,
1525+
collateral_index: _,
15371526
collateral_address: _,
1538-
operator_reward,
1527+
operator_reward: _,
15391528
state: _,
15401529
confirmations: _,
15411530
wallet: _,

0 commit comments

Comments
 (0)