cultcache-rs tests: through_cache unwraps the stored envelope (fixes the previous commit's type error)

The previous commit does not build its union_parity test target; this one does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-11 10:14:38 +02:00
commit 4482e297cf

View file

@ -567,7 +567,10 @@ fn through_cache(payload: &[u8]) -> Result<UnionSurface, String> {
schema_id: None,
})
.unwrap();
cache.get::<UnionSurface>("k").map_err(|error| format!("{error:#}"))
match cache.get::<UnionSurface>("k") {
Ok(value) => Ok(value.expect("the envelope was stored")),
Err(error) => Err(format!("{error:#}")),
}
}
#[test]