diff options
author | Joel Kronqvist <joel.kronqvist@iki.fi> | 2025-08-14 15:31:27 +0300 |
---|---|---|
committer | Joel Kronqvist <joel.kronqvist@iki.fi> | 2025-08-14 15:31:27 +0300 |
commit | 928a3358483f60db84dc2918415882b35adc006b (patch) | |
tree | 0b35b8e601f3ca93cdeb7f8d45bb1d06cf274e66 /src/type/util.rs | |
parent | 907bd54d19f6bf14a130a136df6f37cc5d256468 (diff) | |
download | myslip-928a3358483f60db84dc2918415882b35adc006b.tar.gz myslip-928a3358483f60db84dc2918415882b35adc006b.zip |
fix: removed obsolete code for handling types as they are now parsed directly to atoms
Diffstat (limited to 'src/type/util.rs')
-rw-r--r-- | src/type/util.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/type/util.rs b/src/type/util.rs index 23f8d1f..ad85b79 100644 --- a/src/type/util.rs +++ b/src/type/util.rs @@ -24,7 +24,7 @@ impl SExp { let argnames = ls.get(1) .ok_or(InvalidFunDef(self.clone(), NoArgumentList))? .clone().parts(); - let argtypes = ls.get(2) + let argtype = ls.get(2) .ok_or(InvalidFunDef(self.clone(), NoTypeList))? .clone(); let rettype = ls.get(3) @@ -40,9 +40,9 @@ impl SExp { }?); } - let argtypes = match argtypes.clone().multistep() { - Ok(Atom(Ty(List(v)))) => Ok(v), - Ok(Atom(Ty(t))) => Ok(vec![t]), + let argtypes = match argtype { + Atom(Ty(List(v))) => Ok(v), + Atom(Ty(t)) => Ok(vec![t]), _ => { Err(InvalidFunDef(self.clone(), InvalidArgumentList)) }, |