Skip to content

Commit

Permalink
Merge pull request #2564 from stevenengler/counter-trait-bounds
Browse files Browse the repository at this point in the history
Fix `Counter::sorted_for_display` warning on nightly
  • Loading branch information
stevenengler authored Nov 23, 2022
2 parents 76a4573 + 75bfcfb commit 2113805
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/utility/counter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@ impl Counter {
/// (currently sorted by value with the largest value first).
fn sorted_for_display<'a>(
&'a self,
) -> impl IntoIterator<IntoIter = impl Iterator<Item = (&'a String, &'a i64)> + ExactSizeIterator + 'a>
{
) -> impl IntoIterator<
IntoIter = impl Iterator<Item = (&'a String, &'a i64)> + ExactSizeIterator + 'a,
Item = (&'a String, &'a i64),
> {
// Get the items in a vector so we can sort them.
let mut item_vec = Vec::from_iter(&self.items);

Expand Down

0 comments on commit 2113805

Please sign in to comment.