Update rust edition to 2021 (#749)

* build: update rust edition 2021

* cargo: format all

* build: fix tests and warnings
This commit is contained in:
ardocrat
2026-05-14 12:58:22 +02:00
committed by GitHub
parent a3e71a8b2d
commit 602d79e868
17 changed files with 25 additions and 18 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ repository = "https://github.com/mimblewimble/grin-wallet"
keywords = [ "crypto", "grin", "mimblewimble" ]
exclude = ["**/*.grin", "**/*.grin2"]
#build = "src/build/build.rs"
edition = "2018"
edition = "2021"
[dependencies]
futures = "0.3"
+1 -1
View File
@@ -82,7 +82,7 @@ where
C: NodeClient + 'static,
K: keychain::Keychain + 'static,
{
// Assume global chain type has already been initialized.
// Assume global chain type has already been initialized.
let chain_type = global::get_chain_type();
let mut w_lock = owner_api.wallet_inst.lock();
+6 -2
View File
@@ -96,8 +96,12 @@ pub fn setup_global_chain_type() {
pub fn create_wallet_proxy(
test_dir: &str,
) -> WalletProxy<DefaultLCProvider<LocalWalletClient, ExtKeychain>, LocalWalletClient, ExtKeychain>
{
) -> WalletProxy<
'_,
DefaultLCProvider<'_, LocalWalletClient, ExtKeychain>,
LocalWalletClient,
ExtKeychain,
> {
WalletProxy::new(test_dir)
}