Complied with clippy

This commit is contained in:
Chad Stearns 2020-09-13 14:55:37 -04:00
parent 3112025b0c
commit 4e7aecc434
2 changed files with 1 additions and 8 deletions

View file

@ -212,7 +212,7 @@ pub fn construct_optimization_passes<'a>(
(mpm, fpm)
}
fn get_inplace_from_layout<'a, 'b>(layout: &'b Layout<'a>) -> InPlace {
fn get_inplace_from_layout(layout: &Layout<'_>) -> InPlace {
match layout {
Layout::Builtin(Builtin::EmptyList) => InPlace::InPlace,
Layout::Builtin(Builtin::List(memory_mode, _)) => match memory_mode {

View file

@ -7,13 +7,6 @@ use inkwell::values::{BasicValueEnum, FunctionValue, IntValue, PointerValue, Str
use inkwell::{AddressSpace, IntPredicate};
use roc_mono::layout::{Builtin, Layout, MemoryMode};
fn get_list_element_type<'a, 'b>(layout: &'b Layout<'a>) -> Option<&'b Layout<'a>> {
match layout {
Layout::Builtin(Builtin::List(_, elem_layout)) => Some(elem_layout),
_ => None,
}
}
/// List.single : a -> List a
pub fn list_single<'a, 'ctx, 'env>(
env: &Env<'a, 'ctx, 'env>,