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

Introduce a generic slice clone function #1432

Merged
merged 3 commits into from Mar 12, 2023
Merged

Conversation

tmthrgd
Copy link
Collaborator

@tmthrgd tmthrgd commented Mar 7, 2023

This is nil-preserving unlike the existing code.

We also add some missing []byte slice copies.

Fixes #1381

This is nil-preserving unlike the existing code.

We also add some missing []byte slice copies.
@tmthrgd tmthrgd requested a review from miekg as a code owner March 7, 2023 02:09
@tmthrgd
Copy link
Collaborator Author

tmthrgd commented Mar 7, 2023

The go.mod / go.sum changes come from bumping the go version and running go mod tidy.

@tmthrgd tmthrgd marked this pull request as draft March 8, 2023 14:04
@tmthrgd tmthrgd marked this pull request as ready for review March 8, 2023 22:31
@miekg miekg merged commit d83d31b into miekg:master Mar 12, 2023
@tmthrgd tmthrgd deleted the generic_clone branch March 12, 2023 10:59
tmthrgd added a commit to tmthrgd/miekgdns that referenced this pull request Nov 6, 2023
I missed this pattern in miekg#1432. These seem to be the only two
occurrences.

Updates miekg#1432
miekg pushed a commit that referenced this pull request Nov 6, 2023
I missed this pattern in #1432. These seem to be the only two
occurrences.

Updates #1432
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.

A.copy does not preserve the nilness of A.IP
2 participants