tor-guardmgr: use imported WeightThreshold in one place

Without this, an unused import warning is generated when building
without features.
This commit is contained in:
Ian Jackson 2022-11-03 15:44:32 +00:00
parent 37aa8e79d1
commit aa375e2e09
1 changed files with 1 additions and 1 deletions

View File

@ -418,7 +418,7 @@ impl GuardSet {
let want_to_add = params.min_filtered_sample_size - n_filtered_usable;
let n_to_add = std::cmp::min(max_to_add, want_to_add);
let candidate::WeightThreshold {
let WeightThreshold {
mut current_weight,
maximum_weight,
} = dir.weight_threshold(&self.guards, params);