make core compile

This commit is contained in:
Evan Almloff committed 2024-01-05 12:25:18 -06:00
1 parent 113b2c1529
commit 32b15fc851
9 files changed
+98 -88

No files matched your search

+1 -1
View File
@@ -264,7 +264,7 @@ impl<T> Throw for Option<T> {
#[derive(Clone)]
pub struct ErrorHandler(Rc<dyn Fn(CapturedError) -> Element>);
impl<F: Fn(CapturedError) -> Element> From<F> for ErrorHandler {
impl<F: Fn(CapturedError) -> Element + 'static> From<F> for ErrorHandler {
fn from(value: F) -> Self {
Self(Rc::new(value))
}