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/memory.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/database/memory.rs') diff --git a/src/database/memory.rs b/src/database/memory.rs index 412deef..c2ceb85 100644 --- a/src/database/memory.rs +++ b/src/database/memory.rs @@ -1,4 +1,4 @@ -#![allow(clippy::todo)] +#![allow(clippy::todo, missing_docs)] use futures_util::FutureExt; use serde_json::json; use std::collections::HashMap; @@ -8,6 +8,7 @@ use tokio::sync::RwLock; use crate::database::{ErrorKind, MicropubChannel, Result, settings, Storage, StorageError}; #[derive(Clone, Debug, Default)] +/// A simple in-memory store for testing purposes. pub struct MemoryStorage { pub mapping: Arc>>, pub channels: Arc>>>, @@ -239,9 +240,9 @@ impl Storage for MemoryStorage { todo!() } - async fn all_posts<'this>(&'this self, user: &url::Url) -> Result + Send + 'this> { + async fn all_posts<'this>(&'this self, _user: &url::Url) -> Result + Send + 'this> { todo!(); - Ok(futures::stream::pending()) + #[allow(unreachable_code)] Ok(futures::stream::pending()) } } -- cgit 1.4.1