add full api to engine (#50)

Signed-off-by: eric-therond <eric.therond.fr@gmail.com>
This commit is contained in:
eric-therond
2023-11-27 18:08:40 +01:00
committed by GitHub
parent 3514594c56
commit ef36d9bed5
6 changed files with 171 additions and 173 deletions
+1 -2
View File
@@ -58,8 +58,7 @@ pub fn schedule<Str: Clone + std::cmp::Ord + std::fmt::Debug>(
}
// Order of execution for statements.
let mut order = vec![];
order.reserve(infos.len());
let mut order = Vec::with_capacity(infos.len());
// Keep track of whether a var has been defined or not.
let mut defined_vars = BTreeSet::new();