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

Make unreachable width actually unreachable #287

Closed
wants to merge 1 commit into from

Conversation

mibac138
Copy link
Contributor

@mibac138 mibac138 commented May 17, 2021

Normally width is only called after is_hidden returns false but in
the case of a ProgressDrawTargetKind::Remote it always returned
false even if the draw target was actually hidden and because of it
drawing did call width

Alternative to #286, fixes #285

cc @matthiasbeyer I'm pretty sure this fixes the problem, but just to be certain could you check?

Normally `width` is only called after `is_hidden` returns false but in
the case of a `ProgressDrawTargetKind::Remote` it always returned
false even if the draw target was actually hidden and because of it
drawing did call `width`
@matthiasbeyer
Copy link
Contributor

matthiasbeyer commented May 17, 2021

With this patch it seems that indicatif deadlocks for me.

@mibac138
Copy link
Contributor Author

Closed in favor of #286

@mibac138 mibac138 closed this May 17, 2021
@mibac138 mibac138 deleted the main2 branch May 17, 2021 16:01
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.

unreachable!() statement is reachable
2 participants