1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2024-12-04 19:31:09 +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,
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<T> {
fn with_default<O>(&self, f: impl FnOnce(&T) -> O) -> O;
}