silence some redundant closure call warnings caused by macros

This commit is contained in:
Folkert 2023-10-07 15:23:47 +02:00
parent 9cdc49b9db
commit e6a154765c
No known key found for this signature in database
GPG Key ID: 1F17F6FFD112B97C
2 changed files with 3 additions and 4 deletions

View File

@ -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)| {

View File

@ -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 {