From 8d63b0479c8b74a756a9e9b34d97f821f280fd22 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 28 Feb 2024 15:24:50 +0100 Subject: Make use of `is_some_and` where applicable (#3523) --- tests/src/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/src') 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; } -- cgit v1.2.3