commit | 845267812596c0d2a9bbd87ff05616208696ac55 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Thu Sep 06 02:06:07 2018 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Thu Sep 06 02:08:17 2018 -0700 |
tree | 884f28fbe1f9a85d679526987191ba3a2dbf405a | |
parent | 97cf49d7f7e53907a2cf53dfab5fa0c892df5638 [diff] [blame] |
Provide Clone for Error
diff --git a/src/error.rs b/src/error.rs index 67e3939..16e568e 100644 --- a/src/error.rs +++ b/src/error.rs
@@ -26,7 +26,7 @@ /// [module documentation]: index.html /// /// *This type is available if Syn is built with the `"parsing"` feature.* -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct Error { span: Span, message: String,