Skip to content

Commit 33773be

Browse files
committed
clippy: use std::ptr:eq
Signed-off-by: Sergio Lopez <[email protected]>
1 parent 1dfa117 commit 33773be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vmm/src/macos/vstate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ impl Vcpu {
232232
// _before_ running this, then there is nothing we can do.
233233
Self::TLS_VCPU_PTR.with(|cell: &VcpuCell| {
234234
if let Some(vcpu_ptr) = cell.get() {
235-
if vcpu_ptr == self as *const Vcpu {
235+
if std::ptr::eq(vcpu_ptr, self) {
236236
Self::TLS_VCPU_PTR.with(|cell: &VcpuCell| cell.take());
237237
return Ok(());
238238
}

0 commit comments

Comments
 (0)