Skip to content

Commit

Permalink
Bump for clippy correctness fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhoo committed Apr 26, 2020
1 parent 69e31ef commit 6e935f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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."
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ impl<V> Predicate<V> {
impl<V> PartialEq for Predicate<V> {
#[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 ()
}
}

Expand Down

0 comments on commit 6e935f2

Please sign in to comment.