diff options
author | Joel Kronqvist <joel.kronqvist@iki.fi> | 2025-08-18 22:41:50 +0300 |
---|---|---|
committer | Joel Kronqvist <joel.kronqvist@iki.fi> | 2025-08-18 22:41:50 +0300 |
commit | 74903656b27f40322151d3b8bc0335b7924133f4 (patch) | |
tree | 64db34d6d187a9598950d47326a68c53c3b4d221 /src/sexp/util.rs | |
parent | 133edb2824130873e0e590ebec603d0b6f9da6a9 (diff) | |
download | myslip-74903656b27f40322151d3b8bc0335b7924133f4.tar.gz myslip-74903656b27f40322151d3b8bc0335b7924133f4.zip |
fix: quote/vector disappearing in substitution on cases
Diffstat (limited to 'src/sexp/util.rs')
-rw-r--r-- | src/sexp/util.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/sexp/util.rs b/src/sexp/util.rs index db400e9..1da9ccf 100644 --- a/src/sexp/util.rs +++ b/src/sexp/util.rs @@ -104,11 +104,6 @@ impl SExp { Option<(SExp, Vec<(SExp, SExp)>)> { let (scrutinee, patarms) = self.check_case()?; - let scrutinee = match scrutinee { - SCons(q, v) if *q == Atom(Quote) || *q == Atom(Vector) => *v, - t => t, - }; - let mut res = vec![]; for patarm in patarms { let (pat, arm) = match patarm { |