Use UEnv where possible

This commit is contained in:
Ayaz Hafiz 2023-06-22 14:12:05 -05:00
parent ad20a2ee41
commit adf961ba0b
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 23 additions and 17 deletions

View file

@ -17,7 +17,7 @@ use roc_types::{
Category, ExtImplicitOpenness, Polarity, TypeTag, Types,
},
};
use roc_unify::unify::{unify, Env as UEnv, Mode, Unified};
use roc_unify::unify::{unify, Mode, Unified};
use crate::{
ability::{AbilityImplError, ObligationCache},
@ -862,7 +862,7 @@ pub(crate) fn type_to_var_help(
let category = Category::OpaqueArg;
match unify(
&mut UEnv::new(env.subs),
&mut env.uenv(),
var,
flex_ability,
Mode::EQ,