Skip to content

Commit

Permalink
remove some outdated comments / move import
Browse files Browse the repository at this point in the history
  • Loading branch information
BlockListed committed Sep 9, 2023
1 parent 84eac3b commit 43a7b7f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -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") {
Expand Down Expand Up @@ -835,7 +835,6 @@ impl<'r> FromRequest<'r> for OwnerHeaders {
}
}

use std::borrow::Cow;
//
// Client IP address detection
//
Expand Down
1 change: 0 additions & 1 deletion src/db/models/cipher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ use crate::error::MapResult;

/// Database methods
impl Cipher {
// TODO: Change back
pub async fn to_json(
&self,
base_url: &str,
Expand Down

0 comments on commit 43a7b7f

Please sign in to comment.