Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg committed Oct 2, 2024
1 parent 0422c86 commit 6d81e81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion crates/rooch-key/src/keystore/file_keystore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ impl AccountKeystore for FileBasedKeystore {

fn addresses(&self) -> Vec<RoochAddress> {
// Create an empty Vec to store the addresses.
let mut addresses = Vec::with_capacity(self.keystore.keys.len() + self.keystore.session_keys.len());
let mut addresses =
Vec::with_capacity(self.keystore.keys.len() + self.keystore.session_keys.len());

// Iterate over the `keys` and `session_keys` BTreeMaps.
for key in self.keystore.keys.keys() {
Expand Down
3 changes: 2 additions & 1 deletion crates/rooch-key/src/keystore/memory_keystore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ impl AccountKeystore for InMemKeystore {

fn addresses(&self) -> Vec<RoochAddress> {
// Create an empty Vec to store the addresses.
let mut addresses = Vec::with_capacity(self.keystore.keys.len() + self.keystore.session_keys.len());
let mut addresses =
Vec::with_capacity(self.keystore.keys.len() + self.keystore.session_keys.len());

// Iterate over the `keys` and `session_keys` BTreeMaps.
for key in self.keystore.keys.keys() {
Expand Down

0 comments on commit 6d81e81

Please sign in to comment.