Skip to content

Commit e8cd7a6

Browse files
Remove confusing Option::filter
1 parent c2e35ab commit e8cd7a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/src/server.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ pub async fn handle_graph(body: graph::Request, data: &InputData) -> ServerResul
371371
is_interpolated: data
372372
.interpolated
373373
.get(&commit)
374-
.filter(|c| {
374+
.map(|c| {
375375
c.iter().any(|interpolation| {
376376
if bench_name.name != interpolation.benchmark {
377377
return false;
@@ -383,7 +383,7 @@ pub async fn handle_graph(body: graph::Request, data: &InputData) -> ServerResul
383383
}
384384
})
385385
})
386-
.is_some(),
386+
.unwrap_or(false),
387387
});
388388
}
389389
if base_compile && is_println_incr {

0 commit comments

Comments
 (0)