Skip to content

refactor(linter): replace ast "compare by hash" to "compare by content" #5600

@Boshen

Description

@Boshen

pub fn calculate_hash<T: ContentHash>(t: &T) -> u64 {
let mut hasher = FxHasher::default();
t.content_hash(&mut hasher);
hasher.finish()
}

Can now be replaced by ContentEq https://docs.rs/oxc_span/0.27.0/oxc_span/cmp/trait.ContentEq.html

Metadata

Metadata

Assignees

Labels

A-linterArea - LinterC-enhancementCategory - New feature or request

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions