From 6e935f2f23a2a13077778e37dc71a7b0d30a7210 Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Sun, 26 Apr 2020 12:07:47 -0400 Subject: [PATCH] Bump for clippy correctness fix --- Cargo.toml | 2 +- src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d2180f8..08b07ae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "evmap" -version = "9.0.0" +version = "9.0.1" edition = "2018" description = "A lock-free, eventually consistent, concurrent multi-value map." diff --git a/src/lib.rs b/src/lib.rs index 37f1c64..eeb6c1a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -262,7 +262,8 @@ impl Predicate { impl PartialEq for Predicate { #[inline] fn eq(&self, other: &Self) -> bool { - &*self.0 as *const _ == &*other.0 as *const _ + // only compare data, not vtable: https://stackoverflow.com/q/47489449/472927 + &*self.0 as *const _ as *const () == &*other.0 as *const _ as *const () } }