File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ impl ObservationStore {
201201 let all = self . read_all ( ) . await ?;
202202 Ok ( all
203203 . into_iter ( )
204- . filter ( |o| o. kind == * kind && project. map_or ( true , |p| o. project == p) )
204+ . filter ( |o| o. kind == * kind && project. is_none_or ( |p| o. project == p) )
205205 . collect ( ) )
206206 }
207207
@@ -212,7 +212,7 @@ impl ObservationStore {
212212 Ok ( all
213213 . into_iter ( )
214214 . filter ( |o| {
215- let project_match = project. map_or ( true , |p| o. project == p) ;
215+ let project_match = project. is_none_or ( |p| o. project == p) ;
216216 if !project_match {
217217 return false ;
218218 }
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ mod tests {
211211 assert ! ( result. is_err( ) ) ;
212212 }
213213
214- #[ cfg( feature = "native" ) ]
214+ #[ cfg( all ( feature = "native" , not ( target_os = "windows" ) ) ) ]
215215 #[ tokio:: test]
216216 async fn native_executor_cwd ( ) {
217217 let dir = tempfile:: tempdir ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments