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

Make Config cloneable for DeltaTest, store as Cow<Config> there #884

Merged
merged 1 commit into from
Jan 5, 2022

Conversation

th1000s
Copy link
Collaborator

@th1000s th1000s commented Jan 4, 2022

Only cloneable when testing, the types git2::Config and
git2::Repository in GitConfig contain C pointers and can't
really be cloned.

Only cloneable when testing, the types git2::Config and
git2::Repository in GitConfig contain C pointers and can't
really be cloned.
@th1000s th1000s mentioned this pull request Jan 4, 2022
@WayneD
Copy link
Contributor

WayneD commented Jan 5, 2022

Nice work! My rust-novice eyes can follow most of that, and I think the GitConfig work-around seems quite reasonable for the tests.

@dandavison dandavison merged commit 48fec2e into dandavison:master Jan 5, 2022
@dandavison
Copy link
Owner

Great!

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.

3 participants