summaryrefslogtreecommitdiff
path: root/tests/src/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/tests.rs')
-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;
}