From a87bf0a302719cd6f48bc806fa75bc2990db37b3 Mon Sep 17 00:00:00 2001 From: Folkert Date: Sat, 20 Feb 2021 22:16:42 +0100 Subject: [PATCH] clippy --- compiler/load/src/file.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/compiler/load/src/file.rs b/compiler/load/src/file.rs index ea760f8c28..b7378285e6 100644 --- a/compiler/load/src/file.rs +++ b/compiler/load/src/file.rs @@ -2212,7 +2212,7 @@ fn load_pkg_config<'a>( &header, pkg_module_timing, ) - .map(|x| x.1)?; + .1; let effects_module_msg = fabricate_effects_module( arena, @@ -2223,7 +2223,7 @@ fn load_pkg_config<'a>( header, effect_module_timing, ) - .map(|x| x.1)?; + .1; Ok(Msg::Many(vec![effects_module_msg, pkg_config_module_msg])) } @@ -3093,11 +3093,11 @@ fn fabricate_pkg_config_module<'a>( ident_ids_by_module: Arc>>, header: &PlatformHeader<'a>, module_timing: ModuleTiming, -) -> Result<(ModuleId, Msg<'a>), LoadingProblem<'a>> { +) -> (ModuleId, Msg<'a>) { let provides: &'a [Located>] = header.provides.clone().into_bump_slice(); - Ok(send_header_two( + send_header_two( arena, filename, shorthand, @@ -3110,7 +3110,7 @@ fn fabricate_pkg_config_module<'a>( module_ids, ident_ids_by_module, module_timing, - )) + ) } #[allow(clippy::too_many_arguments)] @@ -3122,7 +3122,7 @@ fn fabricate_effects_module<'a>( mode: Mode, header: PlatformHeader<'a>, module_timing: ModuleTiming, -) -> Result<(ModuleId, Msg<'a>), LoadingProblem<'a>> { +) -> (ModuleId, Msg<'a>) { let num_exposes = header.provides.len() + 1; let mut exposed: Vec = Vec::with_capacity(num_exposes);