Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
B-2U committed Jul 8, 2024
1 parent 19e126e commit 894b85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/cache_methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub async fn player(
lock.get(&(*region, ign.to_string())).cloned()
};
if let Some(cached_player) = cache_result {
Ok(cached_player.clone())
Ok(cached_player)
} else {
let candidates = api.players(region, ign, 1).await?;
let first_candidate = candidates.first().ok_or(IsacInfo::PlayerIgnNotFound {
Expand Down

0 comments on commit 894b85a

Please sign in to comment.