tamer: iter::collect::TryCollect::try_collect_ok: Disambiguate try_collect

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.

  - https://github.com/rust-lang/rust/issues/94047
  - https://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.try_collect
main
Mike Gerwitz 2022-03-08 12:55:54 -05:00
parent 21770305f9
commit 76b16fed09
1 changed files with 1 additions and 1 deletions

View File

@ -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))
}
}