about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2021-05-17 05:36:44 +0300
committerVika <vika@fireburn.ru>2021-05-17 05:36:44 +0300
commita8f99bb1097865ac992711a715f5d4e76f3206a2 (patch)
treef1494c6995cf331a85b101c5b0ae2e8ee71bc387 /src
parent696ae495aca701c3431710e5dfc03e15aba2f74e (diff)
Fixed failing tests
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index ed30b94..fdbd2d3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -57,6 +57,8 @@ pub async fn get_app_with_redis(token_endpoint: surf::Url, authorization_endpoin
 
 #[cfg(test)]
 pub async fn get_app_with_test_redis(token_endpoint: surf::Url) -> (database::RedisInstance, database::RedisStorage, App<database::RedisStorage>) {
+    use surf::Url;
+
     let redis_instance = database::get_redis_instance().await;
     let backend = database::RedisStorage::new(redis_instance.uri().to_string()).await.unwrap();
     let app = tide::with_state(ApplicationState {