1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2024-12-04 19:21:08 +00:00
This commit is contained in:
Felix Ableitner 2024-11-25 12:06:49 +01:00
parent 34cbfe8cc9
commit 1f7baddc29

View file

@ -6,12 +6,8 @@ use crate::{
dark_mode::DarkMode, dark_mode::DarkMode,
pages::{ pages::{
article::{ article::{
actions::ArticleActions, actions::ArticleActions, create::CreateArticle, edit::EditArticle,
create::CreateArticle, history::ArticleHistory, list::ListArticles, read::ReadArticle,
edit::EditArticle,
history::ArticleHistory,
list::ListArticles,
read::ReadArticle,
}, },
diff::EditDiff, diff::EditDiff,
instance::{details::InstanceDetails, list::ListInstances}, instance::{details::InstanceDetails, list::ListInstances},
@ -45,8 +41,6 @@ pub fn is_admin() -> bool {
.unwrap_or(false) .unwrap_or(false)
}) })
} }
// TODO: can probably get rid of this
pub trait DefaultResource<T> { pub trait DefaultResource<T> {
fn with_default<O>(&self, f: impl FnOnce(&T) -> O) -> O; fn with_default<O>(&self, f: impl FnOnce(&T) -> O) -> O;
} }