From 191dee73df6958f0cceb00fb6d18f8fd68a9bbe8 Mon Sep 17 00:00:00 2001 From: Folkert Date: Fri, 22 Jan 2021 13:53:33 +0100 Subject: [PATCH] clippy --- compiler/gen/src/llvm/refcounting.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/gen/src/llvm/refcounting.rs b/compiler/gen/src/llvm/refcounting.rs index ba41f368aa..f8e3c9019f 100644 --- a/compiler/gen/src/llvm/refcounting.rs +++ b/compiler/gen/src/llvm/refcounting.rs @@ -540,7 +540,7 @@ fn modify_refcount_list<'a, 'ctx, 'env>( call_help(env, function, mode, original_wrapper.into(), call_name); } -fn mode_to_call_mode<'a, 'ctx, 'env>(function: FunctionValue<'ctx>, mode: Mode) -> CallMode<'ctx> { +fn mode_to_call_mode(function: FunctionValue<'_>, mode: Mode) -> CallMode<'_> { match mode { Mode::Dec => CallMode::Dec, Mode::Inc(num) => CallMode::Inc(num, function.get_nth_param(1).unwrap().into_int_value()), @@ -923,7 +923,7 @@ fn build_rec_union_help<'a, 'ctx, 'env>( return true; } } - return false; + false })(); let ctx = env.context;