lint: fix clippy and fmt issues
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -38,9 +38,7 @@ impl Default for DecksCache {
|
|||||||
impl DecksCache {
|
impl DecksCache {
|
||||||
/// Gets the first column in the currently active user's active deck
|
/// 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> {
|
pub fn first_column_mut(&mut self, accounts: ¬edeck::Accounts) -> Option<&mut Column> {
|
||||||
let Some(account) = accounts.get_selected_account() else {
|
let account = accounts.get_selected_account()?;
|
||||||
return None;
|
|
||||||
};
|
|
||||||
|
|
||||||
self.decks_mut(&account.key.pubkey)
|
self.decks_mut(&account.key.pubkey)
|
||||||
.active_deck_mut()
|
.active_deck_mut()
|
||||||
|
|||||||
Reference in New Issue
Block a user