Derive more standard traits.

This commit is contained in:
Stephen Chung
2020-05-12 18:48:25 +08:00
parent 03c64688ad
commit ec67879759
7 changed files with 19 additions and 17 deletions

View File

@@ -122,7 +122,7 @@ impl ParseErrorType {
}
/// Error when parsing a script.
#[derive(Debug, PartialEq, Eq, Clone, Hash)]
#[derive(Debug, Eq, PartialEq, Clone, Hash)]
pub struct ParseError(pub(crate) ParseErrorType, pub(crate) Position);
impl ParseError {