mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-13 22:08:45 +00:00
Fix Engine::same().
Preferably we'd be able to compare two trait objects both vptr and struct, but rust doesn't have a way to do that without relying on unsafe code. Fixes error with `cargo clippy`.
This commit is contained in:
@@ -21,7 +21,7 @@ impl Store {
|
||||
}
|
||||
|
||||
pub fn same(a: &Store, b: &Store) -> bool {
|
||||
Arc::ptr_eq(&a.engine, &b.engine)
|
||||
a.engine.uuid() == b.engine.uuid()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user