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();
|
||||
|
||||
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_var = *main_fn_var;
|
||||
|
||||
|
|
|
@ -1161,11 +1161,9 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
|
|||
match scope.top_level_thunks.get(symbol) {
|
||||
Some((_layout, function_value)) => {
|
||||
// this is a 0-argument thunk, evaluate it!
|
||||
let call = env.builder.build_call(
|
||||
function_value.clone(),
|
||||
&[],
|
||||
"evaluate_top_level_thunk",
|
||||
);
|
||||
let call =
|
||||
env.builder
|
||||
.build_call(*function_value, &[], "evaluate_top_level_thunk");
|
||||
|
||||
call.try_as_basic_value().left().unwrap()
|
||||
}
|
||||
|
|
|
@ -202,7 +202,6 @@ impl SolvedType {
|
|||
}
|
||||
|
||||
pub fn from_var(subs: &Subs, var: Variable) -> Self {
|
||||
// seen: MutSet<Variable>,
|
||||
let mut seen = RecursionVars::default();
|
||||
Self::from_var_help(subs, &mut seen, var)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue