From 6b0296e195942c0c6e48f013e8af28170507d486 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 18 May 2026 00:07:23 +0900 Subject: fix(compile): impl std::error::Error for custom error types --- crates/shirabe/src/plugin/plugin_blocked_exception.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crates/shirabe/src/plugin') diff --git a/crates/shirabe/src/plugin/plugin_blocked_exception.rs b/crates/shirabe/src/plugin/plugin_blocked_exception.rs index b8f2301..b554b13 100644 --- a/crates/shirabe/src/plugin/plugin_blocked_exception.rs +++ b/crates/shirabe/src/plugin/plugin_blocked_exception.rs @@ -4,3 +4,11 @@ use shirabe_php_shim::UnexpectedValueException; // TODO(plugin): PluginBlockedException is a part of Plugin API. pub struct PluginBlockedException(pub UnexpectedValueException); + +impl std::fmt::Display for PluginBlockedException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + self.0.fmt(f) + } +} + +impl std::error::Error for PluginBlockedException {} -- cgit v1.3.1