Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-pousette committed Jun 25, 2021
1 parent 8c27107 commit eaf7507
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,9 @@ pub fn count_nodes<T>(idx: &Index<T>) -> i32 {
if let Some(next) = &n.next {
count += count_nodes_recursively(next);
}
return count;
count
}
return count_nodes_recursively(&idx.root);
count_nodes_recursively(&idx.root)
}

#[cfg(test)]
Expand Down
1 change: 0 additions & 1 deletion src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ pub fn query<T: Eq + Hash + Clone + Debug, M, S: ScoreCalculator<T, M>>(
let pointer_borrowed = p.lock().unwrap();
let details = &pointer_borrowed.details.lock().unwrap();
let key = &details.key;
std::mem::drop(details);
if removed.is_none() || !removed.unwrap().contains(&key) {
let score = &score_calculator.score(
pre_calculations.as_ref(),
Expand Down

0 comments on commit eaf7507

Please sign in to comment.