mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
clippy
This commit is contained in:
parent
31e963fad6
commit
729e16cad9
3 changed files with 4 additions and 7 deletions
|
@ -263,7 +263,7 @@ fn gen(src: &[u8], target: Triple, opt_level: OptLevel) -> Result<ReplOutput, Fa
|
||||||
let builder = context.create_builder();
|
let builder = context.create_builder();
|
||||||
|
|
||||||
debug_assert_eq!(exposed_to_host.len(), 1);
|
debug_assert_eq!(exposed_to_host.len(), 1);
|
||||||
let (main_fn_symbol, main_fn_var) = exposed_to_host.iter().nth(0).unwrap();
|
let (main_fn_symbol, main_fn_var) = exposed_to_host.iter().next().unwrap();
|
||||||
let main_fn_symbol = *main_fn_symbol;
|
let main_fn_symbol = *main_fn_symbol;
|
||||||
let main_fn_var = *main_fn_var;
|
let main_fn_var = *main_fn_var;
|
||||||
|
|
||||||
|
|
|
@ -1161,11 +1161,9 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
|
||||||
match scope.top_level_thunks.get(symbol) {
|
match scope.top_level_thunks.get(symbol) {
|
||||||
Some((_layout, function_value)) => {
|
Some((_layout, function_value)) => {
|
||||||
// this is a 0-argument thunk, evaluate it!
|
// this is a 0-argument thunk, evaluate it!
|
||||||
let call = env.builder.build_call(
|
let call =
|
||||||
function_value.clone(),
|
env.builder
|
||||||
&[],
|
.build_call(*function_value, &[], "evaluate_top_level_thunk");
|
||||||
"evaluate_top_level_thunk",
|
|
||||||
);
|
|
||||||
|
|
||||||
call.try_as_basic_value().left().unwrap()
|
call.try_as_basic_value().left().unwrap()
|
||||||
}
|
}
|
||||||
|
|
|
@ -202,7 +202,6 @@ impl SolvedType {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn from_var(subs: &Subs, var: Variable) -> Self {
|
pub fn from_var(subs: &Subs, var: Variable) -> Self {
|
||||||
// seen: MutSet<Variable>,
|
|
||||||
let mut seen = RecursionVars::default();
|
let mut seen = RecursionVars::default();
|
||||||
Self::from_var_help(subs, &mut seen, var)
|
Self::from_var_help(subs, &mut seen, var)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue