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

perf(borders): allow border!() in const #977

Merged
merged 1 commit into from Mar 4, 2024

Conversation

EdJoPaTo
Copy link
Member

@EdJoPaTo EdJoPaTo commented Mar 3, 2024

This allows more compiler optimizations when the macro is used.

Interestingly TOP | BOTTOM is bitwise-or and not const (as it's a trait…). insert is also not const, union is.

Also moves tests from test folder to the file itself as I overlooked them initially. Borders was together in a file with Block back when it was introduced.

Also see #11 and #832

This allows more compiler optimizations when the macro is used.

Interestingly TOP | BOTTOM is bitwise or and not const (it's a trait…).
insert is also not const, union is.

Also moves tests from test folder to the file itself as I overlooked
them initially. Borders was together in a file with Block back when it
was introduced.
Copy link

codecov bot commented Mar 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.9%. Comparing base (c12bcfe) to head (d06e4e1).

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #977   +/-   ##
=====================================
  Coverage   91.9%   91.9%           
=====================================
  Files         61      61           
  Lines      15964   15992   +28     
=====================================
+ Hits       14673   14701   +28     
  Misses      1291    1291           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@joshka joshka left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the PR

@joshka joshka merged commit e02f476 into ratatui-org:main Mar 4, 2024
33 checks passed
@EdJoPaTo EdJoPaTo deleted the border-macro-const branch March 4, 2024 08:47
joshka pushed a commit to nowNick/ratatui that referenced this pull request May 24, 2024
This allows more compiler optimizations when the macro is used.
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