use reference to match on SyntaxError, re: #45

This commit is contained in:
Mark Thom
2018-08-28 14:30:50 -03:00
parent b418e63a89
commit dc91f46d83

View File

@@ -148,7 +148,7 @@ pub enum SyntaxError {
impl SyntaxError {
pub fn as_str(&self) -> &'static str {
match self {
SyntaxError::ImpDepAtom => "imp_dep_atom"
&SyntaxError::ImpDepAtom => "imp_dep_atom"
}
}
}