remove unused context trait and fix warning

This commit is contained in:
Robert Habermeier
2017-12-29 02:56:04 +01:00
parent 4b3b1249dc
commit 136645aa4c
3 changed files with 11 additions and 23 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ impl<C: Context> Table<C> {
let candidate = &candidate_data.candidate;
match best_candidates.entry(group_id.clone()) {
BTreeEntry::Occupied(mut occ) => {
let mut candidate_ref = occ.get_mut();
let candidate_ref = occ.get_mut();
if *candidate_ref < candidate {
*candidate_ref = candidate;
}