From 43a7b7ffdd2edb69def4e038956b2b4fbb946eea 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 d73ab6dfcc..0a1ce96575 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 d62fa9375f..799a929dc2 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,