Skip to content

Commit

Permalink
Fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
div-seungha committed Dec 18, 2024
1 parent f0c9572 commit 4d34404
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graphql/ip_location.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl IpLocationQuery {
return Err("IP location database unavailable".into());
};
let record = {
if let Ok(mut locator) = mutex.lock() {
if let Ok(locator) = mutex.lock() {
locator
.ip_lookup(addr)
.ok()
Expand Down Expand Up @@ -54,7 +54,7 @@ impl IpLocationQuery {
};

addresses.truncate(MAX_NUM_IP_LOCATION_LIST);
let mut locator = mutex
let locator = mutex
.lock()
.map_err(|_| "Failed to lock IP location database")?;
let records = addresses
Expand Down

0 comments on commit 4d34404

Please sign in to comment.