Remove unnecessary cgu name length hash
This is a tiny optimization
This commit is contained in:
parent
e40d5e83dc
commit
85136dbe56
1 changed files with 0 additions and 1 deletions
|
@ -164,7 +164,6 @@ pub struct WorkProductId {
|
||||||
impl WorkProductId {
|
impl WorkProductId {
|
||||||
pub fn from_cgu_name(cgu_name: &str) -> WorkProductId {
|
pub fn from_cgu_name(cgu_name: &str) -> WorkProductId {
|
||||||
let mut hasher = StableHasher::new();
|
let mut hasher = StableHasher::new();
|
||||||
cgu_name.len().hash(&mut hasher);
|
|
||||||
cgu_name.hash(&mut hasher);
|
cgu_name.hash(&mut hasher);
|
||||||
WorkProductId { hash: hasher.finish() }
|
WorkProductId { hash: hasher.finish() }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue