From 1f7baddc290760ab1f33a467dbd6f3a31f26a896 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 25 Nov 2024 12:06:49 +0100 Subject: [PATCH] fmt --- src/frontend/app.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/frontend/app.rs b/src/frontend/app.rs index 807c804..f9f5302 100644 --- a/src/frontend/app.rs +++ b/src/frontend/app.rs @@ -6,12 +6,8 @@ use crate::{ dark_mode::DarkMode, pages::{ article::{ - actions::ArticleActions, - create::CreateArticle, - edit::EditArticle, - history::ArticleHistory, - list::ListArticles, - read::ReadArticle, + actions::ArticleActions, create::CreateArticle, edit::EditArticle, + history::ArticleHistory, list::ListArticles, read::ReadArticle, }, diff::EditDiff, instance::{details::InstanceDetails, list::ListInstances}, @@ -45,8 +41,6 @@ pub fn is_admin() -> bool { .unwrap_or(false) }) } - -// TODO: can probably get rid of this pub trait DefaultResource { fn with_default(&self, f: impl FnOnce(&T) -> O) -> O; }