From e67deae9a4630d4c2b76cd68beb6b931a80766a7 Mon Sep 17 00:00:00 2001 From: aiongg Date: Tue, 17 Nov 2026 19:07:07 +0000 Subject: [PATCH] cms: the forged-hash test builds its cache through HashCache --- crates/cms/src/profile.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cms/src/profile.rs b/crates/cms/src/profile.rs index 95fbe0b82..786750479 100644 --- a/crates/cms/src/profile.rs +++ b/crates/cms/src/profile.rs @@ -595,7 +595,7 @@ mod tests { /// `p` with the content hash of `other`: the hash is a fixed-key 64-bit SipHash, so a /// crafted profile can have another's (#8613). Setting it stands in for finding one. fn with_hash_of(p: &Profile, other: &Profile) -> Profile { - let p = Profile { hash: std::sync::OnceLock::from(other.content_hash()), ..p.clone() }; + let p = Profile { hash: HashCache(std::sync::OnceLock::from(other.content_hash())), ..p.clone() }; assert_eq!(p.content_hash(), other.content_hash()); p }