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:
parent
066ee4e177
commit
4482e297cf
1 changed files with 4 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue