From d6fc81c5b0ac26de8ddfaedd9443f9934d3877f1 Mon Sep 17 00:00:00 2001 From: Francis Lalonde Date: Sun, 15 May 2022 21:42:17 -0400 Subject: [PATCH] Derive Clone for Error --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 32f24af4..e498a608 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -72,7 +72,7 @@ pub enum ErrorKind { } /// An error type for serial port operations -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct Error { /// The kind of error this is pub kind: ErrorKind,