diff options
author | Vika <vika@fireburn.ru> | 2022-03-23 05:01:14 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2022-03-23 05:01:14 +0300 |
commit | 54914782c7632e041919746e80d3f802f6601a63 (patch) | |
tree | d54286ddb5424a16921cd0e21cb3917fa47a05a6 /src/database/memory.rs | |
parent | 8964a0330d77fe5a75d33c504791db601d2b0ac7 (diff) | |
download | kittybox-54914782c7632e041919746e80d3f802f6601a63.tar.zst |
Make the settings in the database a strong type
Diffstat (limited to 'src/database/memory.rs')
-rw-r--r-- | src/database/memory.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/database/memory.rs b/src/database/memory.rs index df142d3..5e2ad52 100644 --- a/src/database/memory.rs +++ b/src/database/memory.rs @@ -6,7 +6,7 @@ use tokio::sync::RwLock; use futures_util::FutureExt; use serde_json::json; -use crate::database::{Storage, Result, StorageError, ErrorKind, MicropubChannel}; +use crate::database::{Storage, Result, StorageError, ErrorKind, MicropubChannel, Settings}; #[derive(Clone, Debug)] pub struct MemoryStorage { @@ -177,12 +177,12 @@ impl Storage for MemoryStorage { } #[allow(unused_variables)] - async fn get_setting(&self, setting: &'_ str, user: &'_ str) -> Result<String> { + async fn get_setting(&self, setting: Settings, user: &'_ str) -> Result<String> { todo!() } #[allow(unused_variables)] - async fn set_setting(&self, setting: &'_ str, user: &'_ str, value: &'_ str) -> Result<()> { + async fn set_setting(&self, setting: Settings, user: &'_ str, value: &'_ str) -> Result<()> { todo!() } } |