mirror of
https://github.com/teo3300/rust-mal.git
synced 2026-01-12 01:05:32 +01:00
Nooooooo
This commit is contained in:
@ -127,7 +127,7 @@ pub fn call_func(func: &MalType, args: &[MalType]) -> CallRet {
|
||||
_ => Err(MalErr::unrecoverable("Map argument must be string or key")),
|
||||
}
|
||||
}
|
||||
M::Vector(v) => {
|
||||
M::Vector(v) | M::List(v) => {
|
||||
if args.is_empty() {
|
||||
return Err(MalErr::unrecoverable("No key provided to Vector construct"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user