chore: fmt + clippy
This commit is contained in:
@ -317,10 +317,12 @@ impl App {
|
||||
/// Virtual categories (_Index, _Dim) are always present and don't count.
|
||||
pub fn is_empty_model(&self) -> bool {
|
||||
use crate::model::category::CategoryKind;
|
||||
self.model
|
||||
.categories
|
||||
.values()
|
||||
.all(|c| matches!(c.kind, CategoryKind::VirtualIndex | CategoryKind::VirtualDim))
|
||||
self.model.categories.values().all(|c| {
|
||||
matches!(
|
||||
c.kind,
|
||||
CategoryKind::VirtualIndex | CategoryKind::VirtualDim
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
pub fn handle_key(&mut self, key: KeyEvent) -> Result<()> {
|
||||
|
||||
Reference in New Issue
Block a user