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:
Nick Lewycky
2020-06-08 12:55:22 -07:00
parent c01408bbaa
commit d858b544fa
7 changed files with 29 additions and 3 deletions

View File

@@ -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()
}
}