mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-10 10:02:38 +03:00
Appease clippy
This commit is contained in:
parent
1b48c370a9
commit
c47dc57fc2
@ -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)]
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user