Skip to content

Commit

Permalink
chore: thank you clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk committed Aug 30, 2024
1 parent d6e936f commit a884740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/frontend_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use actix_web::{
};
use dashmap::DashMap;
use serde_qs::actix::QsQuery;
use tracing::{debug, info, instrument};
use tracing::{debug, instrument};
use unleash_types::client_features::Context;
use unleash_types::client_metrics::{ClientApplication, ConnectVia};
use unleash_types::{
Expand Down Expand Up @@ -452,7 +452,7 @@ pub fn evaluate_feature(
engine_cache: Data<DashMap<String, EngineState>>,
client_ip: Option<ClientIp>,
) -> EdgeResult<EvaluatedToggle> {
let context: Context = incoming_context.clone().into();
let context: Context = incoming_context.clone();
let context_with_ip = if context.remote_address.is_none() {
Context {
remote_address: client_ip.map(|ip| ip.to_string()),
Expand Down

0 comments on commit a884740

Please sign in to comment.