From 4ca7bcec6d2614b8ed66dbfb6a8ad1f19fee1754 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 14 Apr 2025 11:14:55 -0700 Subject: [PATCH] lint: fix clippy and fmt issues Signed-off-by: William Casarin --- crates/notedeck_columns/src/decks.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/notedeck_columns/src/decks.rs b/crates/notedeck_columns/src/decks.rs index 6c4da679..447759da 100644 --- a/crates/notedeck_columns/src/decks.rs +++ b/crates/notedeck_columns/src/decks.rs @@ -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: ¬edeck::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()