Skip to content

Conversation

@fox0
Copy link
Contributor

@fox0 fox0 commented Sep 29, 2024

No description provided.

Ok(())
}
Some(ref mut f) => f.write_all(buf),
None => Ok(()),
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the reason for the assert!()? Usually these are intentional and should not be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The assertion assert!(false) will never be executed.

Copy link
Contributor

Choose a reason for hiding this comment

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

My gut instinct is there is an edge case we are missing. Nonetheless, going to merge this PR and hope edge case, if any, is caught later.

@fox0 fox0 requested a review from jgarzik October 5, 2024 11:03
@jgarzik jgarzik merged commit 9f64d39 into rustcoreutils:main Oct 9, 2024
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.

2 participants