update StoredValue API in callbacks

This commit is contained in:
Greg Johnston 2024-05-10 15:40:18 -04:00
parent d9f6836933
commit da084a2ece
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ impl<In, Out> fmt::Debug for Callback<In, Out> {
impl<In, Out> Callable<In, Out> for Callback<In, Out> {
fn call(&self, input: In) -> Out {
self.0
.with_value(|f| f(input))
.try_with_value(|f| f(input))
.expect("called a callback that has been disposed")
}
}