Fix clippy lint

This commit is contained in:
Jack Grigg 2023-12-06 18:19:15 +00:00
parent d332aacf98
commit 842ce36f7c
1 changed files with 1 additions and 1 deletions

View File

@ -387,7 +387,7 @@ impl<P: consensus::Parameters> WalletWrite for WalletDb<rusqlite::Connection, P>
let account = wallet::get_max_account_id(wdb.conn.0)?
.map(|a| a.next().ok_or(SqliteClientError::AccountIdOutOfRange))
.transpose()?
.unwrap_or_else(|| AccountId::ZERO);
.unwrap_or(AccountId::ZERO);
let usk = UnifiedSpendingKey::from_seed(&wdb.params, seed.expose_secret(), account)
.map_err(|_| SqliteClientError::KeyDerivationError(account))?;