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

fix(barchart): empty groups causes panic #333

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

karthago1
Copy link
Contributor

@karthago1 karthago1 commented Jul 18, 2023

This unlikely to happen, since nobody wants to add an empty group.

Even if we fix the panic, things will not render correctly. So it is better to just not add them at all.

This unlikely to happen, since nobody wants to add an empty group.
Even we fix the panic, things will not render correctly.
So it is better to just not add them to the BarChart.

Signed-off-by: Ben Fekih, Hichem <hichem.f@live.de>
@codecov
Copy link

codecov bot commented Jul 18, 2023

Codecov Report

Merging #333 (c619080) into main (13fb11a) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #333      +/-   ##
==========================================
+ Coverage   85.05%   85.08%   +0.03%     
==========================================
  Files          40       40              
  Lines        8590     8608      +18     
==========================================
+ Hits         7306     7324      +18     
  Misses       1284     1284              
Impacted Files Coverage Δ
src/widgets/barchart/mod.rs 89.98% <100.00%> (+0.32%) ⬆️

@joshka joshka added this pull request to the merge queue Jul 19, 2023
Merged via the queue into ratatui-org:main with commit 9c95673 Jul 19, 2023
30 checks passed
@joshka joshka added this to the v0.23.0 milestone Aug 21, 2023
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.

None yet

3 participants