mirror of
https://github.com/Nutomic/ibis.git
synced 2024-11-22 14:21: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)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct DbArticleCollection(Vec<DbArticle>);
|
pub struct DbArticleCollection(());
|
||||||
|
|
||||||
#[async_trait::async_trait]
|
#[async_trait::async_trait]
|
||||||
impl Collection for DbArticleCollection {
|
impl Collection for DbArticleCollection {
|
||||||
|
@ -66,14 +66,13 @@ impl Collection for DbArticleCollection {
|
||||||
_owner: &Self::Owner,
|
_owner: &Self::Owner,
|
||||||
data: &Data<Self::DataType>,
|
data: &Data<Self::DataType>,
|
||||||
) -> Result<Self, Self::Error> {
|
) -> Result<Self, Self::Error> {
|
||||||
let articles = try_join_all(
|
try_join_all(
|
||||||
apub.items
|
apub.items
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|i| DbArticle::from_json(i, data)),
|
.map(|i| DbArticle::from_json(i, data)),
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
// TODO: return value propably not needed
|
Ok(DbArticleCollection(()))
|
||||||
Ok(DbArticleCollection(articles))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue