diff options
Diffstat (limited to 'src/database/memory.rs')
-rw-r--r-- | src/database/memory.rs | 7 |
1 files changed, 4 insertions, 3 deletions
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<RwLock<HashMap<String, serde_json::Value>>>, pub channels: Arc<RwLock<HashMap<url::Url, Vec<String>>>>, @@ -239,9 +240,9 @@ impl Storage for MemoryStorage { todo!() } - async fn all_posts<'this>(&'this self, user: &url::Url) -> Result<impl futures::Stream<Item = serde_json::Value> + Send + 'this> { + async fn all_posts<'this>(&'this self, _user: &url::Url) -> Result<impl futures::Stream<Item = serde_json::Value> + Send + 'this> { todo!(); - Ok(futures::stream::pending()) + #[allow(unreachable_code)] Ok(futures::stream::pending()) } } |