use reference to match on SyntaxError, re: #45
This commit is contained in:
@@ -148,7 +148,7 @@ pub enum SyntaxError {
|
|||||||
impl SyntaxError {
|
impl SyntaxError {
|
||||||
pub fn as_str(&self) -> &'static str {
|
pub fn as_str(&self) -> &'static str {
|
||||||
match self {
|
match self {
|
||||||
SyntaxError::ImpDepAtom => "imp_dep_atom"
|
&SyntaxError::ImpDepAtom => "imp_dep_atom"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user