move things in place to go storage_subs -> subs

This commit is contained in:
Folkert 2022-03-11 10:49:22 +01:00
parent fa74cf1424
commit 9054546d27
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 13 additions and 6 deletions

View file

@ -22,12 +22,10 @@ pub fn run_solve(
constraints: &Constraints,
constraint: ConstraintSoa,
rigid_variables: MutMap<Variable, Lowercase>,
var_store: VarStore,
mut subs: Subs,
) -> (Solved<Subs>, solve::Env, Vec<solve::TypeError>) {
let env = solve::Env::default();
let mut subs = Subs::new_from_varstore(var_store);
for (var, name) in rigid_variables {
subs.rigid_var(var, name);
}