Skip to content

Conversation

@notoriaga
Copy link
Contributor

@notoriaga notoriaga commented Oct 21, 2021

Previously you had to convert the iterator returned by iter_messages from Iterator<Result<Sbp>> to Iterator<Sbp> before calling with_rover_time. Now it works on both kinds of iterators


fn next(&mut self) -> Option<Self::Item> {
let msg = self.messages.next()?;
pub trait HasTime {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kind of a clunky solution but I don't know a better way to do this without specialization

@notoriaga notoriaga requested a review from a team October 22, 2021 17:24
@notoriaga notoriaga merged commit 214b752 into master Oct 22, 2021
@notoriaga notoriaga deleted the steve/rover-time branch October 22, 2021 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants