From 10442350c31c94f75855a93a5e78f4c6b5b8e382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 19 Apr 2023 23:35:02 +0200 Subject: [PATCH] refactor(core): remove PhantomData from IdentityHasher (#18770) --- core/realm.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/realm.rs b/core/realm.rs index 8e2d932b5b..08a550294d 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); +pub(crate) struct IdentityHasher(u64); impl Hasher for IdentityHasher { fn write_i32(&mut self, i: i32) {