From fae770a6a272fbd8d707fc698032c36a679e2375 Mon Sep 17 00:00:00 2001 From: BlockListed <44610569+BlockListed@users.noreply.github.com> Date: Sat, 9 Sep 2023 19:50:16 +0200 Subject: [PATCH] remove some outdated comments / move import --- src/auth.rs | 3 +-- src/db/models/cipher.rs | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/auth.rs b/src/auth.rs index 9af38a8f..29d907f3 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -359,6 +359,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}, @@ -392,7 +393,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") { @@ -864,7 +864,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 096e1984..29b24c11 100644 --- a/src/db/models/cipher.rs +++ b/src/db/models/cipher.rs @@ -113,7 +113,6 @@ use crate::error::MapResult; /// Database methods impl Cipher { - // TODO: Change back pub async fn to_json( &self, base_url: &str,