Skip to content

Commit 933cf1b

Browse files
committed
chore: fix warnings
1 parent 9a41e47 commit 933cf1b

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

components/clarinet-cli/src/chainhooks/types.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ impl ChainhookPredicateFile {
257257
self.extract_exact_matching_rule(specs)?,
258258
)));
259259
return Ok(predicate);
260-
} else if let Some(ref specs) = self.protocol {
260+
} else if let Some(ref _specs) = self.protocol {
261261
let predicate = BitcoinPredicateType::Protocol(Protocols::Ordinal(
262262
OrdinalOperations::InscriptionRevealed,
263263
));
@@ -300,6 +300,7 @@ impl ChainhookPredicateFile {
300300
return Err(format!("predicate rule not specified (equals)"));
301301
}
302302

303+
#[allow(dead_code)]
303304
pub fn extract_scope(&self) -> Result<Scope, String> {
304305
if let Some(ref scope) = self.scope {
305306
let scope = match scope.as_str() {

components/clarinet-cli/src/frontend/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ use clarinet_utils::get_bip39_seed_from_mnemonic;
2929
use clarity_repl::analysis::call_checker::ContractAnalysis;
3030
use clarity_repl::clarity::address::AddressHashMode;
3131
use clarity_repl::clarity::stacks_common::types::chainstate::StacksAddress;
32-
use clarity_repl::clarity::util::hash::bytes_to_hex;
3332
use clarity_repl::clarity::util::secp256k1::Secp256k1PublicKey;
3433
use clarity_repl::clarity::vm::analysis::AnalysisDatabase;
3534
use clarity_repl::clarity::vm::costs::LimitedCostTracker;
@@ -1328,6 +1327,7 @@ pub fn main() {
13281327
)) {
13291328
Ok(_) => {}
13301329
Err(e) => {
1330+
println!("prepare subnet node: {}", e);
13311331
process::exit(1);
13321332
}
13331333
};

components/stacks-network/src/orchestrator.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2648,7 +2648,7 @@ events_keys = ["*"]
26482648
.to_string();
26492649
checksum
26502650
}
2651-
Err(e) => {
2651+
Err(_e) => {
26522652
panic!()
26532653
}
26542654
};
@@ -2678,7 +2678,7 @@ events_keys = ["*"]
26782678
.map_err(|e| format!("unable to send 'importdescriptors' request ({})", e));
26792679

26802680
match rpc_call {
2681-
Ok(r) => {
2681+
Ok(_r) => {
26822682
break;
26832683
}
26842684
Err(e) => {
@@ -2735,7 +2735,7 @@ events_keys = ["*"]
27352735
.to_string();
27362736
checksum
27372737
}
2738-
Err(e) => {
2738+
Err(_e) => {
27392739
panic!()
27402740
}
27412741
};
@@ -2765,7 +2765,7 @@ events_keys = ["*"]
27652765
.map_err(|e| format!("unable to send 'importdescriptors' request ({})", e));
27662766

27672767
match rpc_call {
2768-
Ok(r) => {
2768+
Ok(_r) => {
27692769
break;
27702770
}
27712771
Err(e) => {
@@ -2826,7 +2826,7 @@ events_keys = ["*"]
28262826
.to_string();
28272827
checksum
28282828
}
2829-
Err(e) => {
2829+
Err(_e) => {
28302830
panic!()
28312831
}
28322832
};
@@ -2856,7 +2856,7 @@ events_keys = ["*"]
28562856
.map_err(|e| format!("unable to send 'importdescriptors' request ({})", e));
28572857

28582858
match rpc_call {
2859-
Ok(r) => {
2859+
Ok(_r) => {
28602860
break;
28612861
}
28622862
Err(e) => {

0 commit comments

Comments
 (0)