lint: fix clippy and fmt issues

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-04-14 11:14:55 -07:00
parent b4d1265283
commit 4ca7bcec6d

View File

@@ -38,9 +38,7 @@ impl Default for DecksCache {
impl DecksCache {
/// Gets the first column in the currently active user's active deck
pub fn first_column_mut(&mut self, accounts: &notedeck::Accounts) -> Option<&mut Column> {
let Some(account) = accounts.get_selected_account() else {
return None;
};
let account = accounts.get_selected_account()?;
self.decks_mut(&account.key.pubkey)
.active_deck_mut()