Skip to content

Commit

Permalink
Silence clippy warning about useless conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
notlesh committed Nov 22, 2024
1 parent c48bde1 commit e6fe0be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vm/src/vm/vm_memory/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,7 @@ impl<'a> RelocateValue<'a, &'a MaybeRelocatable, Cow<'a, MaybeRelocatable>> for
Ok(match value {
MaybeRelocatable::Int(_) => Cow::Borrowed(value),
MaybeRelocatable::RelocatableValue(addr) => {
#[allow(clippy::useless_conversion)]
Cow::Owned(self.relocate_value(*addr)?.into())
}
})
Expand Down

0 comments on commit e6fe0be

Please sign in to comment.