mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
Remove unnecessary cgu name length hash
This is a tiny optimization
This commit is contained in:
parent
e40d5e83dc
commit
85136dbe56
@ -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() }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user