From 519cadfbb298f50cbf819dde757037ab56e2863e Mon Sep 17 00:00:00 2001 From: Vika Date: Wed, 9 Apr 2025 23:24:33 +0300 Subject: Small fry clippy lints Change-Id: I4b0bed232d6274d161bebafcee9ac22a63c01772 --- src/database/file/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/database/file/mod.rs') diff --git a/src/database/file/mod.rs b/src/database/file/mod.rs index db9bb22..b9f27b2 100644 --- a/src/database/file/mod.rs +++ b/src/database/file/mod.rs @@ -603,6 +603,7 @@ impl Storage for FileStorage { // Broken links return None, and Stream::filter_map skips Nones. .try_filter_map(|post: Option| async move { Ok(post) }) .and_then(|mut post| async move { + // XXX: N+1 problem, potential sanitization issues hydrate_author(&mut post, user, self).await; Ok(post) }) @@ -758,6 +759,6 @@ impl Storage for FileStorage { async fn all_posts<'this>(&'this self, user: &url::Url) -> Result + Send + 'this> { todo!(); - Ok(futures::stream::empty()) // for type inference + #[allow(unreachable_code)] Ok(futures::stream::empty()) // for type inference } } -- cgit 1.4.1