Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

impl Clone for WithSpan<E> #1620

Merged
merged 1 commit into from
Dec 21, 2021
Merged

Conversation

jakobhellermann
Copy link
Contributor

I wanted to create a CreateShaderModuleError from a &WithSpan<ValidationError> to reuse wgpu's shader error formatting, but that isn't possible right now because WithSpan can't be cloned and you can't get an &E from &WithSpan<E>.

Solution: #[derive(Clone)]

@kvark kvark enabled auto-merge (squash) December 21, 2021 20:13
@kvark kvark added the can backport PR that can be back-ported to a release branch label Dec 21, 2021
@kvark kvark merged commit 54178de into gfx-rs:master Dec 21, 2021
@jakobhellermann jakobhellermann deleted the with-span-clone branch December 21, 2021 20:16
kvark pushed a commit to kvark/naga that referenced this pull request Dec 29, 2021
@kvark kvark mentioned this pull request Dec 29, 2021
@kvark
Copy link
Member

kvark commented Dec 29, 2021

published in 0.8.1

@kvark kvark removed the can backport PR that can be back-ported to a release branch label Dec 29, 2021
kvark pushed a commit that referenced this pull request Dec 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants