summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-04-19 23:35:02 +0200
committerGitHub <noreply@github.com>2023-04-19 17:35:02 -0400
commit10442350c31c94f75855a93a5e78f4c6b5b8e382 (patch)
treeecb59147309d5bb9e24b95b978ce88b92a58b659
parentc33675588117aad0b8fabfa5816676d95ba8067e (diff)
refactor(core): remove PhantomData from IdentityHasher (#18770)
-rw-r--r--core/realm.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/realm.rs b/core/realm.rs
index 8e2d932b5..08a550294 100644
--- a/core/realm.rs
+++ b/core/realm.rs
@@ -10,7 +10,6 @@ use std::collections::HashMap;
use std::collections::HashSet;
use std::hash::BuildHasherDefault;
use std::hash::Hasher;
-use std::marker::PhantomData;
use std::option::Option;
use std::rc::Rc;
use v8::HandleScope;
@@ -19,7 +18,7 @@ use v8::Local;
// Hasher used for `unrefed_ops`. Since these are rolling i32, there's no
// need to actually hash them.
#[derive(Default)]
-pub(crate) struct IdentityHasher(u64, PhantomData<i32>);
+pub(crate) struct IdentityHasher(u64);
impl Hasher for IdentityHasher {
fn write_i32(&mut self, i: i32) {