From db75e532e58eabea7a0ab12ecee85c51f24c8709 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Wed, 30 Sep 2015 00:00:17 +0200 Subject: [PATCH] Add Clone derive on ParserError --- src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.rs b/src/parser.rs index ab63e63..394465f 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -103,7 +103,7 @@ pub struct Parser<'a> { /// /// The data in this structure can be used to trace back to the original cause /// of the error in order to provide diagnostics about parse errors. -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct ParserError { /// The low byte at which this error is pointing at. pub lo: usize,