From 384af36ccce74bfa495d4917ad0ba38bcf7499d0 Mon Sep 17 00:00:00 2001 From: Nickqiaoo Date: Mon, 25 Dec 2023 20:12:11 +0800 Subject: [PATCH] feat:refactor clippy --- src/wallet.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet.rs b/src/wallet.rs index 9f11088..f474f20 100644 --- a/src/wallet.rs +++ b/src/wallet.rs @@ -45,7 +45,7 @@ impl Wallet { let secp = Secp256k1::new(); let (private_key, public_key) = secp.generate_keypair(&mut OsRng); - let mut rng = randRng::default(); + let mut rng = randRng; let mut random_bytes = [0u8; 32]; rng.fill_bytes(&mut random_bytes); let spend_key = keys::SpendingKey::from_zip32_seed(&random_bytes, 0, 0).unwrap();