1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-31 11:34:15 -05:00

refactor(core): remove PhantomData from IdentityHasher (#18770)

This commit is contained in:
Bartek Iwańczuk 2023-04-19 23:35:02 +02:00 committed by GitHub
parent c336755881
commit 10442350c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {