mirror of
https://github.com/Nutomic/ibis.git
synced 2024-12-05 02:21:09 +00:00
fmt
This commit is contained in:
parent
34cbfe8cc9
commit
1f7baddc29
1 changed files with 2 additions and 8 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue