]> Repositorios git - scryer-prolog.git/commitdiff
use reference to match on SyntaxError, re: #45
authorMark Thom <[email protected]>
Tue, 28 Aug 2018 17:30:50 +0000 (14:30 -0300)
committerMark Thom <[email protected]>
Tue, 28 Aug 2018 17:30:50 +0000 (14:30 -0300)
src/prolog/machine/machine_errors.rs

index eedba0c4efd856496ca4542a4737b554aa49848c..50ba482a161c0a13fee9599fdc0f5c6e86eb6e4e 100644 (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"
         }
     }
 }