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_collectmain
parent
21770305f9
commit
76b16fed09
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue