Skip to content

Commit

Permalink
tamer: iter::collect::TryCollect::try_collect_ok: Disambiguate try_co…
Browse files Browse the repository at this point in the history
…llect

The Rust team has begun to introduce try_collect.  I will keep an eye on
this implementation and revisit this, but for the time being, I'm going to
disambiguate this so that I can move on without worrying about a future
breakage.

  - rust-lang/rust#94047
  - https://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.try_collect
  • Loading branch information
mikegerwitz-ryansg committed Mar 8, 2022
1 parent 2177030 commit 76b16fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tamer/src/iter/collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ pub trait TryCollect: Iterator + Sized {
// stating that `FnOnce` is "not general enough" and appearing
// immune to any attempts to generalize lifetimes using
// higher-rank trait bounds (HRTBs).
self.while_ok(|iter| iter.try_collect())
self.while_ok(|iter| TryCollect::try_collect(iter))
}
}

Expand Down

0 comments on commit 76b16fe

Please sign in to comment.