commit 4ca7bcec6d2614b8ed66dbfb6a8ad1f19fee1754
parent b4d1265283b352d9875a45bbd9d9c5cc1bf8d097
Author: William Casarin <jb55@jb55.com>
Date: Mon, 14 Apr 2025 11:14:55 -0700
lint: fix clippy and fmt issues
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git 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()