Skip to content

Commit

Permalink
chore(lints): fix redundant clone
Browse files Browse the repository at this point in the history
  • Loading branch information
lsampras committed Jan 22, 2024
1 parent 7cbd2b2 commit f4ee4ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/router/src/services/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ where
let status_code = response
.as_ref()
.map(|i| {
i.clone()
i.as_ref()
.map_or_else(|value| value.status_code, |value| value.status_code)
})
.unwrap_or_default();
Expand Down

0 comments on commit f4ee4ed

Please sign in to comment.