fixed a bug with while loops running unreachable!() code instead of looping on [] values.

This commit is contained in:
Dummi26 2023-03-17 17:05:19 +01:00
parent 021a247369
commit 2a00d01812

View File

@ -703,6 +703,7 @@ impl RStatementEnum {
break VDataEnum::Tuple(vec![]).to();
}
}
VDataEnum::Tuple(v) if v.len() == 0 => (),
VDataEnum::Tuple(v) if v.len() == 1 => break v[0].clone(),
_ => unreachable!(),
}