From 6ed156b82d9975bffd2934042ca59dbe3bc8d410 Mon Sep 17 00:00:00 2001 From: Oscar Beaumont Date: Mon, 26 Aug 2024 13:28:29 +0800 Subject: [PATCH] `impl rspc::Error for Infallible` --- rspc/src/infallible.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rspc/src/infallible.rs b/rspc/src/infallible.rs index 892c9e83..97b4a6b2 100644 --- a/rspc/src/infallible.rs +++ b/rspc/src/infallible.rs @@ -22,3 +22,9 @@ impl Serialize for Infallible { } impl std::error::Error for Infallible {} + +impl crate::Error for Infallible { + fn status(&self) -> u16 { + unreachable!() + } +}