File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -497,9 +497,9 @@ where
497497
498498 let min_key = vec ! [ c0, c1, c3] . into_iter ( ) . flatten ( ) . min ( ) ;
499499 if let Some ( min_key) = min_key {
500- let c0_is_min = c0. map_or ( false , |k| k == min_key) ;
501- let c1_is_min = c1. map_or ( false , |k| k == min_key) ;
502- let c3_is_min = c3. map_or ( false , |k| k == min_key) ;
500+ let c0_is_min = c0 == Some ( min_key) ;
501+ let c1_is_min = c1 == Some ( min_key) ;
502+ let c3_is_min = c3 == Some ( min_key) ;
503503
504504 // Advance all iterators with the same (minimal) key
505505 let c0 = if c0_is_min {
Original file line number Diff line number Diff line change @@ -1905,7 +1905,7 @@ impl CorpusStorage {
19051905 let include_in_output = prep
19061906 . query
19071907 . get_variable_by_node_nr ( node_nr)
1908- . map_or ( false , |var| prep. query . is_included_in_output ( & var) ) ;
1908+ . is_some_and ( |var| prep. query . is_included_in_output ( & var) ) ;
19091909
19101910 if include_in_output {
19111911 if any_nodes_added {
@@ -2526,7 +2526,7 @@ impl Drop for CorpusStorage {
25262526 }
25272527
25282528 // unlock lock file
2529- if let Err ( e) = self . lock_file . unlock ( ) {
2529+ if let Err ( e) = FileExt :: unlock ( & self . lock_file ) {
25302530 warn ! ( "Could not unlock CorpusStorage lock file: {:?}" , e) ;
25312531 } else {
25322532 trace ! ( "Unlocked CorpusStorage lock file" ) ;
You can’t perform that action at this time.
0 commit comments