Remove unnecessary cgu name length hash

This is a tiny optimization
This commit is contained in:
bjorn3 2022-05-13 10:29:35 +00:00
parent e40d5e83dc
commit 85136dbe56

View File

@ -164,7 +164,6 @@ pub struct WorkProductId {
impl WorkProductId {
pub fn from_cgu_name(cgu_name: &str) -> WorkProductId {
let mut hasher = StableHasher::new();
cgu_name.len().hash(&mut hasher);
cgu_name.hash(&mut hasher);
WorkProductId { hash: hasher.finish() }
}