Appease clippy

This commit is contained in:
Richard Feldman 2020-05-26 00:33:23 -04:00
parent 1b48c370a9
commit c47dc57fc2
2 changed files with 13 additions and 15 deletions

View File

@ -30,23 +30,20 @@ pub fn constrain_module(
mode: Mode,
var_store: &VarStore,
) -> Constraint {
use Mode::*;
let mut send_aliases = SendMap::default();
for (symbol, alias) in module.aliases.iter() {
send_aliases.insert(*symbol, alias.clone());
}
let decls = &module.declarations;
let constraint = {
use Mode::*;
let mut send_aliases = SendMap::default();
for (symbol, alias) in module.aliases.iter() {
send_aliases.insert(*symbol, alias.clone());
}
match mode {
Standard => constrain_decls(home, decls, send_aliases),
Uniqueness => crate::uniq::constrain_decls(home, decls, send_aliases, &var_store),
}
};
constraint
match mode {
Standard => constrain_decls(home, decls, send_aliases),
Uniqueness => crate::uniq::constrain_decls(home, decls, send_aliases, &var_store),
}
}
#[derive(Debug, Clone)]

View File

@ -227,6 +227,7 @@ pub async fn load<'a>(
// If the relevant module's waiting_for_solve entry is now empty, solve the module.
let mut solve_listeners: MutMap<ModuleId, Vec<ModuleId>> = MutMap::default();
#[allow(clippy::type_complexity)]
let mut unsolved_modules: MutMap<
ModuleId,
(Module, Box<str>, MutSet<ModuleId>, Constraint, VarStore),