From e01692543bcca16549d739e42bfde338418bb4dc Mon Sep 17 00:00:00 2001 From: Clouds Date: Tue, 16 Aug 2022 00:33:12 +0800 Subject: [PATCH] make error clonable --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index c9bda5ac..124c2fc2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -551,7 +551,7 @@ where } /// The error type returned by methods in this crate. -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct Error(Option); impl fmt::Display for Error {