Skip to content

Commit c368b15

Browse files
authored
Merge pull request #312 from korpling/fix-ci-errors
Fix CI errors
2 parents 7f14da6 + d031f13 commit c368b15

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

core/src/util/disk_collections.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 {

graphannis/src/annis/db/corpusstorage.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)