diff options
author | Joel Kronqvist <joel.kronqvist@iki.fi> | 2025-08-14 12:17:41 +0300 |
---|---|---|
committer | Joel Kronqvist <joel.kronqvist@iki.fi> | 2025-08-14 12:17:41 +0300 |
commit | 0975bff6ddcf48de4072561adea67a5c1cd4456f (patch) | |
tree | f77291d0430079d6927bf896c133e97a6e59c684 /src/sexp/case.rs | |
parent | 189d06730ae23770fbb970bf37eb0993edb8cd2d (diff) | |
download | myslip-0975bff6ddcf48de4072561adea67a5c1cd4456f.tar.gz myslip-0975bff6ddcf48de4072561adea67a5c1cd4456f.zip |
fix: step scrutinee of case & can instantiate empty vec
Diffstat (limited to 'src/sexp/case.rs')
-rw-r--r-- | src/sexp/case.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sexp/case.rs b/src/sexp/case.rs index d78f7ad..eb98446 100644 --- a/src/sexp/case.rs +++ b/src/sexp/case.rs @@ -54,6 +54,7 @@ impl SExp { * ``` */ pub fn matches_pat(&self, pat: &SExp) -> Option<Vec<(String, SExp)>> { + println!("matchin {self} against {pat}"); match (self, pat) { (a, b) if a == b => Some(vec![]), |