mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
clippy
This commit is contained in:
parent
22b2ab499e
commit
a87bf0a302
1 changed files with 6 additions and 6 deletions
|
@ -2212,7 +2212,7 @@ fn load_pkg_config<'a>(
|
||||||
&header,
|
&header,
|
||||||
pkg_module_timing,
|
pkg_module_timing,
|
||||||
)
|
)
|
||||||
.map(|x| x.1)?;
|
.1;
|
||||||
|
|
||||||
let effects_module_msg = fabricate_effects_module(
|
let effects_module_msg = fabricate_effects_module(
|
||||||
arena,
|
arena,
|
||||||
|
@ -2223,7 +2223,7 @@ fn load_pkg_config<'a>(
|
||||||
header,
|
header,
|
||||||
effect_module_timing,
|
effect_module_timing,
|
||||||
)
|
)
|
||||||
.map(|x| x.1)?;
|
.1;
|
||||||
|
|
||||||
Ok(Msg::Many(vec![effects_module_msg, pkg_config_module_msg]))
|
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<Mutex<MutMap<ModuleId, IdentIds>>>,
|
ident_ids_by_module: Arc<Mutex<MutMap<ModuleId, IdentIds>>>,
|
||||||
header: &PlatformHeader<'a>,
|
header: &PlatformHeader<'a>,
|
||||||
module_timing: ModuleTiming,
|
module_timing: ModuleTiming,
|
||||||
) -> Result<(ModuleId, Msg<'a>), LoadingProblem<'a>> {
|
) -> (ModuleId, Msg<'a>) {
|
||||||
let provides: &'a [Located<ExposesEntry<'a, &'a str>>] =
|
let provides: &'a [Located<ExposesEntry<'a, &'a str>>] =
|
||||||
header.provides.clone().into_bump_slice();
|
header.provides.clone().into_bump_slice();
|
||||||
|
|
||||||
Ok(send_header_two(
|
send_header_two(
|
||||||
arena,
|
arena,
|
||||||
filename,
|
filename,
|
||||||
shorthand,
|
shorthand,
|
||||||
|
@ -3110,7 +3110,7 @@ fn fabricate_pkg_config_module<'a>(
|
||||||
module_ids,
|
module_ids,
|
||||||
ident_ids_by_module,
|
ident_ids_by_module,
|
||||||
module_timing,
|
module_timing,
|
||||||
))
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[allow(clippy::too_many_arguments)]
|
||||||
|
@ -3122,7 +3122,7 @@ fn fabricate_effects_module<'a>(
|
||||||
mode: Mode,
|
mode: Mode,
|
||||||
header: PlatformHeader<'a>,
|
header: PlatformHeader<'a>,
|
||||||
module_timing: ModuleTiming,
|
module_timing: ModuleTiming,
|
||||||
) -> Result<(ModuleId, Msg<'a>), LoadingProblem<'a>> {
|
) -> (ModuleId, Msg<'a>) {
|
||||||
let num_exposes = header.provides.len() + 1;
|
let num_exposes = header.provides.len() + 1;
|
||||||
let mut exposed: Vec<Symbol> = Vec::with_capacity(num_exposes);
|
let mut exposed: Vec<Symbol> = Vec::with_capacity(num_exposes);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue