-
Notifications
You must be signed in to change notification settings - Fork 258
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
chore: implement Clone & Copy
common traits
#350
Conversation
Clone & Copy
common traitsClone & Copy
common traits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with the changes that @mindoodoo mentioned
c9d6c4a
to
a725684
Compare
Codecov Report
@@ Coverage Diff @@
## main #350 +/- ##
=======================================
Coverage 84.76% 84.76%
=======================================
Files 40 40
Lines 8603 8603
=======================================
Hits 7292 7292
Misses 1311 1311
|
Implement `Clone & Copy` common traits for most structs in src. Only implement `Copy` for structs that are simple and trivial to copy. Reorder the derive fields to be more consistent: Debug, Default, Clone, Copy, Eq, PartialEq, Ord, PartialOrd, Hash see: ratatui-org#307
Thanks again for the great effort on this! |
Implement
Clone & Copy
common traits for most structs in src.Only implement
Copy
for structs that are simple and trivial to copy.Reorder the derive fields to be more consistent:
see: #307