summaryrefslogtreecommitdiff
path: root/src/syntax/reparser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax/reparser.rs')
-rw-r--r--src/syntax/reparser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax/reparser.rs b/src/syntax/reparser.rs
index 75a5cc27..18960941 100644
--- a/src/syntax/reparser.rs
+++ b/src/syntax/reparser.rs
@@ -72,7 +72,7 @@ fn try_reparse(
return node
.replace_children(i..i + 1, vec![newborn])
.is_ok()
- .then(|| new_range);
+ .then_some(new_range);
}
}
}
@@ -157,7 +157,7 @@ fn try_reparse(
return node
.replace_children(start..end, newborns)
.is_ok()
- .then(|| new_range);
+ .then_some(new_range);
}
}
}