Skip to content

Commit

Permalink
silence clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
graydon committed Jul 14, 2023
1 parent 827365c commit 5537b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soroban-env-host/src/host_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ impl Host {
return if is_relative_object_handle(handle) {
let index = handle_to_index(handle);
let abs_opt = self.with_current_frame_relative_object_table(|table| {
Ok(table.get(index).map(|x| x.clone()))
Ok(table.get(index).map(|x| *x))
})?;
match abs_opt {
Some(abs) if abs.to_val().get_tag() == val.get_tag() => Ok(abs.into()),
Expand Down

0 comments on commit 5537b48

Please sign in to comment.