summaryrefslogtreecommitdiff
path: root/tests/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-02-28 15:24:50 +0100
committerGitHub <noreply@github.com>2024-02-28 14:24:50 +0000
commit8d63b0479c8b74a756a9e9b34d97f821f280fd22 (patch)
tree30cc34e366948d9ea461a1ad35f80bb5c89e10ab /tests/src
parent9d8df00ffb587f1e6062ae471d3da3b1ac61ba9e (diff)
Make use of `is_some_and` where applicable (#3523)
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/tests.rs b/tests/src/tests.rs
index 2be5bc18..4c3975bb 100644
--- a/tests/src/tests.rs
+++ b/tests/src/tests.rs
@@ -805,7 +805,7 @@ fn test_diagnostics<'a>(
let mut actual_diagnostics = HashSet::new();
for diagnostic in diagnostics {
// Ignore diagnostics from other files.
- if diagnostic.span.id().map_or(false, |id| id != source.id()) {
+ if diagnostic.span.id().is_some_and(|id| id != source.id()) {
continue;
}