From 340965b1f5f810414742076501a2fff8a39db674 Mon Sep 17 00:00:00 2001 From: Vika Date: Mon, 27 Sep 2021 17:41:19 +0300 Subject: Code cleanup and Cargo.lock updates --- src/database/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/database/mod.rs') diff --git a/src/database/mod.rs b/src/database/mod.rs index 0b97c24..7c67e42 100644 --- a/src/database/mod.rs +++ b/src/database/mod.rs @@ -7,8 +7,7 @@ use serde::{Deserialize, Serialize}; mod redis; #[cfg(redis)] pub use crate::database::redis::RedisStorage; -#[cfg(redis)] -#[cfg(test)] +#[cfg(all(redis, test))] pub use redis::tests::{get_redis_instance, RedisInstance}; mod file; @@ -36,6 +35,8 @@ pub struct StorageError { source: Option>, kind: ErrorKind, } +// XXX figure out what makes this un-sendable by default +// and if it's sound to mark StorageError as Send & Sync unsafe impl Send for StorageError {} unsafe impl Sync for StorageError {} impl From for tide::Response { -- cgit 1.4.1