Skip to content

Conversation

@YichiZhang0613
Copy link

In this assertion, according to the semantics, self.total_len should not be 0. The message reflects it as it requires "Total length must be positive".

fn next(&mut self) -> Option<Self::Item> {
        assert!(
            self.total_len >= 0.0,
            "Total length must be positive. Total_len: {}",
            self.total_len
        );

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.

1 participant