Skip to content

Commit 4d8ed17

Browse files
fix(key-wallet): rustfmt + qualify intra-doc link to ManagedCoreFundsAccount
- Sort imports and rewrap long signatures (rustfmt fixes flagged by pre-commit) - Qualify the `[\`ManagedCoreFundsAccount\`]` intra-doc links in `managed_core_keys_account.rs` to `[\`crate::managed_account::ManagedCoreFundsAccount\`]` so rustdoc can resolve them under `-D warnings` Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f947811 commit 4d8ed17

3 files changed

Lines changed: 20 additions & 9 deletions

File tree

key-wallet/src/managed_account/managed_core_funds_account.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ use crate::account::ManagedAccountTrait;
1212
use crate::account::TransactionRecord;
1313
#[cfg(feature = "bls")]
1414
use crate::derivation_bls_bip32::ExtendedBLSPubKey;
15+
use crate::managed_account::address_pool;
1516
#[cfg(any(feature = "bls", feature = "eddsa"))]
1617
use crate::managed_account::address_pool::PublicKeyType;
1718
use crate::managed_account::managed_account_type::ManagedAccountType;
1819
use crate::managed_account::transaction_record::{
1920
InputDetail, OutputDetail, OutputRole, TransactionDirection,
2021
};
21-
use crate::managed_account::address_pool;
2222
use crate::transaction_checking::transaction_router::TransactionType;
2323
use crate::transaction_checking::{AccountMatch, TransactionContext};
2424
use crate::utxo::Utxo;

key-wallet/src/managed_account/managed_core_keys_account.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Managed core keys account: address pools and key derivation without funds tracking
22
//!
33
//! This module contains a lightweight mutable account state that omits the funds
4-
//! bookkeeping (balance, UTXOs, spent outpoints) carried by [`ManagedCoreFundsAccount`].
4+
//! bookkeeping (balance, UTXOs, spent outpoints) carried by [`crate::managed_account::ManagedCoreFundsAccount`].
55
//! It is intended for accounts that exist primarily to derive keys/addresses for
66
//! special-purpose flows (identity registration, asset locks, masternode provider
77
//! keys) rather than to hold and spend Dash directly.
@@ -13,9 +13,9 @@ use crate::account::EdDSAAccount;
1313
use crate::account::TransactionRecord;
1414
#[cfg(feature = "bls")]
1515
use crate::derivation_bls_bip32::ExtendedBLSPubKey;
16+
use crate::managed_account::address_pool;
1617
#[cfg(any(feature = "bls", feature = "eddsa"))]
1718
use crate::managed_account::address_pool::PublicKeyType;
18-
use crate::managed_account::address_pool;
1919
use crate::managed_account::managed_account_type::ManagedAccountType;
2020
#[cfg(feature = "eddsa")]
2121
use crate::AddressInfo;
@@ -28,7 +28,7 @@ use std::collections::BTreeMap;
2828

2929
/// Managed core keys account with mutable state but no funds tracking
3030
///
31-
/// Like [`ManagedCoreFundsAccount`] but without `balance`, `utxos`, or
31+
/// Like [`crate::managed_account::ManagedCoreFundsAccount`] but without `balance`, `utxos`, or
3232
/// `spent_outpoints`. Used for accounts that derive special-purpose keys
3333
/// (identity registration, asset locks, masternode provider keys) where
3434
/// per-account UTXO/balance bookkeeping is not meaningful.

key-wallet/src/wallet/managed_wallet_info/helpers.rs

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ impl ManagedWalletInfo {
6969
}
7070

7171
/// Get a CoinJoin managed account at a specific index
72-
pub fn coinjoin_managed_account_at_index(&self, index: u32) -> Option<&ManagedCoreFundsAccount> {
72+
pub fn coinjoin_managed_account_at_index(
73+
&self,
74+
index: u32,
75+
) -> Option<&ManagedCoreFundsAccount> {
7376
self.accounts.coinjoin_accounts.get(&index)
7477
}
7578

@@ -117,7 +120,9 @@ impl ManagedWalletInfo {
117120
}
118121

119122
/// Get the identity registration managed account (mutable)
120-
pub fn identity_registration_managed_account_mut(&mut self) -> Option<&mut ManagedCoreFundsAccount> {
123+
pub fn identity_registration_managed_account_mut(
124+
&mut self,
125+
) -> Option<&mut ManagedCoreFundsAccount> {
121126
self.accounts.identity_registration.as_mut()
122127
}
123128

@@ -143,7 +148,9 @@ impl ManagedWalletInfo {
143148
}
144149

145150
/// Get the identity invitation managed account (mutable)
146-
pub fn identity_invitation_managed_account_mut(&mut self) -> Option<&mut ManagedCoreFundsAccount> {
151+
pub fn identity_invitation_managed_account_mut(
152+
&mut self,
153+
) -> Option<&mut ManagedCoreFundsAccount> {
147154
self.accounts.identity_invitation.as_mut()
148155
}
149156

@@ -155,7 +162,9 @@ impl ManagedWalletInfo {
155162
}
156163

157164
/// Get the provider voting keys managed account (mutable)
158-
pub fn provider_voting_keys_managed_account_mut(&mut self) -> Option<&mut ManagedCoreFundsAccount> {
165+
pub fn provider_voting_keys_managed_account_mut(
166+
&mut self,
167+
) -> Option<&mut ManagedCoreFundsAccount> {
159168
self.accounts.provider_voting_keys.as_mut()
160169
}
161170

@@ -167,7 +176,9 @@ impl ManagedWalletInfo {
167176
}
168177

169178
/// Get the provider owner keys managed account (mutable)
170-
pub fn provider_owner_keys_managed_account_mut(&mut self) -> Option<&mut ManagedCoreFundsAccount> {
179+
pub fn provider_owner_keys_managed_account_mut(
180+
&mut self,
181+
) -> Option<&mut ManagedCoreFundsAccount> {
171182
self.accounts.provider_owner_keys.as_mut()
172183
}
173184

0 commit comments

Comments
 (0)