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:
parent
c336755881
commit
10442350c3
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue