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 Mar 19, 2024
1 parent aceaf61 commit fae770a
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 @@ -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},
Expand Down Expand Up @@ -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") {
Expand Down Expand Up @@ -864,7 +864,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 @@ -113,7 +113,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 fae770a

Please sign in to comment.