mirror of
https://github.com/Nutomic/ibis.git
synced 2024-11-22 08:31:09 +00:00
Fix compiler warning
This commit is contained in:
parent
8b08d99d99
commit
a01d6cad52
1 changed files with 3 additions and 4 deletions
|
@ -22,7 +22,7 @@ pub struct ArticleCollection {
|
|||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct DbArticleCollection(Vec<DbArticle>);
|
||||
pub struct DbArticleCollection(());
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl Collection for DbArticleCollection {
|
||||
|
@ -66,14 +66,13 @@ impl Collection for DbArticleCollection {
|
|||
_owner: &Self::Owner,
|
||||
data: &Data<Self::DataType>,
|
||||
) -> Result<Self, Self::Error> {
|
||||
let articles = try_join_all(
|
||||
try_join_all(
|
||||
apub.items
|
||||
.into_iter()
|
||||
.map(|i| DbArticle::from_json(i, data)),
|
||||
)
|
||||
.await?;
|
||||
|
||||
// TODO: return value propably not needed
|
||||
Ok(DbArticleCollection(articles))
|
||||
Ok(DbArticleCollection(()))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue