Skip to content

Commit 76b16fe

Browse files
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. - rust-lang/rust#94047 - https://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.try_collect
1 parent 2177030 commit 76b16fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tamer/src/iter/collect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ pub trait TryCollect: Iterator + Sized {
134134
// stating that `FnOnce` is "not general enough" and appearing
135135
// immune to any attempts to generalize lifetimes using
136136
// higher-rank trait bounds (HRTBs).
137-
self.while_ok(|iter| iter.try_collect())
137+
self.while_ok(|iter| TryCollect::try_collect(iter))
138138
}
139139
}
140140

0 commit comments

Comments
 (0)