diff --git a/src/auth.rs b/src/auth.rs index d73ab6dfcc2..0a1ce965757 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -330,6 +330,7 @@ use rocket::{ outcome::try_outcome, request::{FromRequest, Outcome, Request}, }; +use std::borrow::Cow; use crate::db::{ models::{Collection, Device, User, UserOrgStatus, UserOrgType, UserOrganization, UserStampException}, @@ -363,7 +364,6 @@ impl<'r> FromRequest<'r> for HostInfo { let headers = request.headers(); // Get host - // TODO: UPDATE THIS SECTION let host_info = if CONFIG.domain_set() { log::debug!("Using configured host info"); let host: Cow<'_, str> = if let Some(host) = headers.get_one("X-Forwarded-Host") { @@ -835,7 +835,6 @@ impl<'r> FromRequest<'r> for OwnerHeaders { } } -use std::borrow::Cow; // // Client IP address detection // diff --git a/src/db/models/cipher.rs b/src/db/models/cipher.rs index d62fa9375ff..799a929dc27 100644 --- a/src/db/models/cipher.rs +++ b/src/db/models/cipher.rs @@ -110,7 +110,6 @@ use crate::error::MapResult; /// Database methods impl Cipher { - // TODO: Change back pub async fn to_json( &self, base_url: &str,