From 2b4cf5c62ff82fa408a4f82bde0b561ff3b15497 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 18 Sep 2024 02:22:09 -0400 Subject: Make BoxedError an implementation detail of InternalError. --- src/error.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/error.rs') diff --git a/src/error.rs b/src/error.rs index b700eaa..21caeda 100644 --- a/src/error.rs +++ b/src/error.rs @@ -9,10 +9,7 @@ use axum::{ // complex (though very usable). We don't need to be overly careful about // allocations on errors in this app, so this is fine for most "general // failure" cases. -// -// If that changes, my hope is to use `thiserror` or something with a similar -// strategy, before resorting to `anyhow`. -pub type BoxedError = Box; +type BoxedError = Box; // Returns a 500 Internal Server Error to the client. Meant to be used via the // `?` operator; _does not_ return the originating error to the client. -- cgit v1.2.3