Skip to content

Commit

Permalink
fmt-stacks
Browse files Browse the repository at this point in the history
  • Loading branch information
cylewitruk committed Mar 7, 2024
1 parent ae14e59 commit a53aeed
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
8 changes: 4 additions & 4 deletions clarity/src/proptesting/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ pub fn contract_context(clarity_version: ClarityVersion) -> impl Strategy<Value
_ => unreachable!(),
}),
// variables
prop::collection::vec((clarity_name(), PropValue::any().prop_map_into()), 0..8)
.prop_map(|v| {
prop::collection::vec((clarity_name(), PropValue::any().prop_map_into()), 0..8).prop_map(
|v| {
v.into_iter()
.map(|(k, v)| (k, v))
.collect::<HashMap<_, _>>()

}),
},
),
// functions
stacks_hash_map(clarity_name(), defined_function(), 1..5),
// defined_traits
Expand Down
1 change: 0 additions & 1 deletion clarity/src/vm/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use std::collections::btree_map::Entry;
use std::collections::BTreeMap;
use std::{char, cmp, fmt, str};

use hashbrown::hash_map::OccupiedEntry;
use regex::Regex;
use stacks_common::address::c32;
use stacks_common::types::chainstate::StacksAddress;
Expand Down
4 changes: 1 addition & 3 deletions stacks-signer/src/runloop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,9 +415,7 @@ mod tests {

let parsed_entries = RunLoop::parse_nakamoto_signer_entries(&signer_entries, false);
assert_eq!(parsed_entries.signer_ids.len(), nmb_signers);
let mut signer_ids = parsed_entries
.signer_ids
.into_values().collect::<Vec<_>>();
let mut signer_ids = parsed_entries.signer_ids.into_values().collect::<Vec<_>>();
signer_ids.sort();
assert_eq!(
signer_ids,
Expand Down
2 changes: 1 addition & 1 deletion stacks-signer/src/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ impl Signer {
epoch,
signer_transactions,
new_transaction,
) {
) {
warn!(
"Signer #{}: Failed to broadcast DKG public key vote ({dkg_public_key:?}): {e:?}",
self.signer_id
Expand Down

0 comments on commit a53aeed

Please sign in to comment.