From b7e3a33deee9ae0b3b290176f703af604bcae555 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Mon, 23 Aug 2021 14:35:14 -0700 Subject: [PATCH] Implement std::error::Error for Error type. This allows our custom Error type to be used in places where a standard Error is required (e.g. Box). Signed-off-by: Daniel Verkamp --- src/writer.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/writer.rs b/src/writer.rs index e44ad9a..6ecd5d8 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -60,6 +60,8 @@ impl fmt::Display for Error { } } +impl std::error::Error for Error {} + /// Result of a FDT writer operation. pub type Result = std::result::Result;