Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding ProgressIterator::progress_with_style() and taking care of minor typos and clippy lints #306

Closed
wants to merge 7 commits into from

Conversation

LeCyberDucky
Copy link
Contributor

I've added ProgressIterator::progress_with_style(), as discussed in #305. Further, I have corrected a small typo and taken care of two clippy warnings.

Resolves #305

Style a ProgressIterator without manually handling the length of the bar
Changed "more then" to "more than"
Removing two needless borrows
@djc
Copy link
Collaborator

djc commented Aug 9, 2021

Looks great, thanks!

@LeCyberDucky
Copy link
Contributor Author

Cool! I forgot one thing, though: With this in place, perhaps the snippet in the documentation that led me here in the first place could/should also be updated, since it still shows ProgressBar::new() without a length argument. I'm not sure where that snippet is located in the repositor, though.

@djc
Copy link
Collaborator

djc commented Aug 9, 2021

It's here: https://github.com/mitsuhiko/indicatif/blob/main/src/lib.rs#L78.

Styling iterators should also be possible for parallel iterators
Change snippet about styling ParallelProgressIterator
@djc
Copy link
Collaborator

djc commented Aug 11, 2021

Would you mind fixing the final clippy lint issue, too? Thanks!

@djc
Copy link
Collaborator

djc commented Aug 11, 2021

I squashed your commits a little bit and rebased them onto main. Thanks!

@djc djc closed this Aug 11, 2021
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.

Style ProgressIterator without overwriting length
2 participants