mirror of
https://github.com/Nutomic/ibis.git
synced 2024-12-04 08:41:08 +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,
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue