Skip to content

Commit c945915

Browse files
committed
fix build
1 parent 3553333 commit c945915

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

src/jormungandr/testing/thor/src/cli/controller.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,5 @@ impl CliController {
209209
}
210210

211211
pub fn save_config(&self) -> Result<(), Error> {
212-
self.wallets.save_config().map_err(Into::into)
213-
}
212+
self.wallets.save_config()}
214213
}

src/jormungandr/testing/thor/src/wallet/account.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ impl Wallet {
6565
Wallet {
6666
signing_key,
6767
internal_counters: SpendingCounterIncreasing::new_from_counter(
68-
spending_counter
69-
.map(Into::into)
70-
.unwrap_or_else(SpendingCounter::zero),
68+
spending_counter.unwrap_or_else(SpendingCounter::zero),
7169
),
7270
discrimination,
7371
}

src/jormungandr/testing/thor/src/wallet/committee/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,5 @@ impl CommitteeDataManager {
221221
},
222222
)
223223
.collect(),
224-
)
225-
.map_err(Into::into)
226-
}
224+
)}
227225
}

src/jormungandr/testing/thor/src/wallet/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl Wallet {
9595
let bech32_str = jortestkit::file::read_file(secret_key_file).unwrap();
9696
Wallet::Account(account::Wallet::from_existing_account(
9797
&bech32_str,
98-
spending_counter.map(Into::into),
98+
spending_counter,
9999
discrimination,
100100
))
101101
}
@@ -117,7 +117,7 @@ impl Wallet {
117117
) -> Wallet {
118118
Wallet::Account(account::Wallet::from_existing_account(
119119
signing_key_bech32,
120-
spending_counter.map(Into::into),
120+
spending_counter,
121121
discrimination,
122122
))
123123
}

0 commit comments

Comments
 (0)