File tree Expand file tree Collapse file tree 4 files changed +5
-10
lines changed
src/jormungandr/testing/thor/src Expand file tree Collapse file tree 4 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,5 @@ impl CliController {
209
209
}
210
210
211
211
pub fn save_config ( & self ) -> Result < ( ) , Error > {
212
- self . wallets . save_config ( ) . map_err ( Into :: into)
213
- }
212
+ self . wallets . save_config ( ) }
214
213
}
Original file line number Diff line number Diff line change @@ -65,9 +65,7 @@ impl Wallet {
65
65
Wallet {
66
66
signing_key,
67
67
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) ,
71
69
) ,
72
70
discrimination,
73
71
}
Original file line number Diff line number Diff line change @@ -221,7 +221,5 @@ impl CommitteeDataManager {
221
221
} ,
222
222
)
223
223
. collect ( ) ,
224
- )
225
- . map_err ( Into :: into)
226
- }
224
+ ) }
227
225
}
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ impl Wallet {
95
95
let bech32_str = jortestkit:: file:: read_file ( secret_key_file) . unwrap ( ) ;
96
96
Wallet :: Account ( account:: Wallet :: from_existing_account (
97
97
& bech32_str,
98
- spending_counter. map ( Into :: into ) ,
98
+ spending_counter,
99
99
discrimination,
100
100
) )
101
101
}
@@ -117,7 +117,7 @@ impl Wallet {
117
117
) -> Wallet {
118
118
Wallet :: Account ( account:: Wallet :: from_existing_account (
119
119
signing_key_bech32,
120
- spending_counter. map ( Into :: into ) ,
120
+ spending_counter,
121
121
discrimination,
122
122
) )
123
123
}
You can’t perform that action at this time.
0 commit comments