mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-22 08:17:40 +03:00
silence some redundant closure call warnings caused by macros
This commit is contained in:
parent
9cdc49b9db
commit
e6a154765c
@ -1634,6 +1634,7 @@ macro_rules! word1_check_indent {
|
||||
macro_rules! map {
|
||||
($parser:expr, $transform:expr) => {
|
||||
move |arena, state, min_indent| {
|
||||
#[allow(clippy::redundant_closure_call)]
|
||||
$parser
|
||||
.parse(arena, state, min_indent)
|
||||
.map(|(progress, output, next_state)| (progress, $transform(output), next_state))
|
||||
@ -1645,6 +1646,7 @@ macro_rules! map {
|
||||
macro_rules! map_with_arena {
|
||||
($parser:expr, $transform:expr) => {
|
||||
move |arena, state, min_indent| {
|
||||
#[allow(clippy::redundant_closure_call)]
|
||||
$parser
|
||||
.parse(arena, state, min_indent)
|
||||
.map(|(progress, output, next_state)| {
|
||||
|
@ -4733,10 +4733,7 @@ impl StorageSubs {
|
||||
(self_offsets.symbol_names + offsets.symbol_names) as usize
|
||||
);
|
||||
|
||||
move |v| {
|
||||
let offsets = offsets;
|
||||
Self::offset_variable(&offsets, v)
|
||||
}
|
||||
move |v| Self::offset_variable(&offsets, v)
|
||||
}
|
||||
|
||||
fn offset_flat_type(offsets: &StorageSubsOffsets, flat_type: &FlatType) -> FlatType {
|
||||
|
Loading…
Reference in New Issue
Block a user