From b99d72ee963c5e2ba545b177bc367910da529f84 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 7 Apr 2023 17:49:26 -0700 Subject: style(main): remove over-specific error handler type context --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 5ea93f9..ea398a7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -77,7 +77,7 @@ async fn main() -> Result<(), Box> { router.set_private_key_file(".locus/locus_private.pem"); router.set_certificate_file(".locus/locus_public.pem"); - router.set_error_handler(|_: windmark::context::ErrorContext| { + router.set_error_handler(|_| { windmark::Response::not_found(ERROR_HANDLER_RESPONSE) }); router.set_fix_path(true); -- cgit v1.2.3