1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2024-11-22 08:21:09 +00:00

Fix compiler warning

This commit is contained in:
Felix Ableitner 2024-10-14 11:30:48 +02:00
parent 8b08d99d99
commit a01d6cad52

View file

@ -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))
} }
} }