ratatui-org / ratatui

Rust library that's all about cooking up terminal user interfaces (TUIs) 👨‍🍳🐀
https://ratatui.rs
MIT License
8.86k stars 269 forks source link

refactor(padding): zero as a constant #1133

Closed EdJoPaTo closed 1 month ago

EdJoPaTo commented 1 month ago

A const fn with no input is probably a constant.

-Padding::zero()
+Padding::ZERO
codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 66.66667% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 94.2%. Comparing base (cf67ed9) to head (0a8ee15).

Files Patch % Lines
src/widgets/block/padding.rs 0.0% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1133 +/- ## ======================================= - Coverage 94.2% 94.2% -0.1% ======================================= Files 60 60 Lines 14630 14623 -7 ======================================= - Hits 13790 13780 -10 - Misses 840 843 +3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.