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

derive Clone on TermInfo struct #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ethanpailes
Copy link

This patch adds a clone derivation to the TermInfo struct. Deep copying is a pretty basic operation, especially in rust where it often makes sense to simplfy borrow checking issues by just paying for a few extra cycles, and not having the ability to clone makes the TermInfo type harder to work with.

This patch adds a clone derivation to the TermInfo struct.
Deep copying is a pretty basic operation, especially in rust
where it often makes sense to simplfy borrow checking issues
by just paying for a few extra cycles, and not having the
ability to clone makes the TermInfo type harder to work with.
@ethanpailes
Copy link
Author

Sorry I didn't create an issue first, maybe you have a good reason for not doing this, I just wanted to give you a patch you can easily click merge on if you do want to do it.

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

1 participant