Skip to content

Conversation

@cruessler
Copy link
Contributor

This is a small PR that adds #[derive(Clone, Copy)] to Either. std::mem::size_of::<Either<'_, '_>>() is 56, but I don’t know whether that qualifies as “a bit large”. :-) If you think it does, I would adapt this PR accordingly.

Copy link
Member

@Byron Byron left a comment

Choose a reason for hiding this comment

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

Great, thank you :D.

It's kind of mean that Rust leaves us with Copy, after all a structure with 5000 integers can be Copy, even though it most certainly shouldn't be.

So let's just go with the version that is easiest on the eyes :).

@Byron Byron enabled auto-merge March 20, 2025 08:45
@Byron Byron merged commit 85b060c into GitoxideLabs:main Mar 20, 2025
21 checks passed
@cruessler
Copy link
Contributor Author

I’m so happy the code is more consistent now. :-)

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.

2 participants