more cleanup

This commit is contained in:
Brandon Thomas committed 2023-03-10 02:59:54 -05:00
1 parent c45a6da8a5
commit 814c04cdac
6 files changed
+7 -3

No files matched your search

Generated
+2
View File
@@ -3340,6 +3340,7 @@ dependencies = [
"chrono",
"container_common",
"dotenv",
"errors",
"language-tags 0.3.2",
"log",
"once_cell",
@@ -4072,6 +4073,7 @@ dependencies = [
"chrono",
"config",
"container_common",
"errors",
"log",
"lru_time_cache",
]
+1
View File
@@ -16,6 +16,7 @@ path = "src/lib.rs"
# Internal
container_common = { path = "../container_common" }
errors = { path = "../errors" }
reusable_types = { path = "../../_types/reusable_types" }
# External
@@ -1,6 +1,6 @@
use serde::Serialize;
use actix_web::HttpResponse;
use container_common::anyhow_result::AnyhowResult;
use errors::AnyhowResult;
pub fn to_json_success_response(response: &impl Serialize) -> AnyhowResult<HttpResponse> {
let body = serde_json::to_string(&response)?;
+1
View File
@@ -17,6 +17,7 @@ path = "src/lib.rs"
# Internal
config = { path = "../config" }
container_common = { path = "../container_common" }
errors = { path = "../errors" }
# External
anyhow = "1.0.40"
@@ -1,5 +1,5 @@
use anyhow::bail;
use container_common::anyhow_result::AnyhowResult;
use errors::AnyhowResult;
use lru_time_cache::LruCache;
use std::sync::{Arc, Mutex};
use std::time::Duration;
@@ -1,5 +1,5 @@
use anyhow::bail;
use container_common::anyhow_result::AnyhowResult;
use errors::AnyhowResult;
use lru_time_cache::LruCache;
use std::sync::{Arc, Mutex};
use std::time::Duration;