From 6e14123b8733381b52a1ad944a393367e8166874 Mon Sep 17 00:00:00 2001 From: Raphael Nestler Date: Wed, 4 Jul 2018 11:12:05 +0200 Subject: [PATCH] Derive Clone, PartialEq and Eq for Error --- serial-core/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serial-core/src/lib.rs b/serial-core/src/lib.rs index 8d26249..2a8b1da 100644 --- a/serial-core/src/lib.rs +++ b/serial-core/src/lib.rs @@ -47,7 +47,7 @@ pub enum ErrorKind { } /// An error type for serial port operations. -#[derive(Debug)] +#[derive(Debug,Clone,PartialEq,Eq)] pub struct Error { kind: ErrorKind, description: String,