Stream: git-wasmtime

Topic: wasmtime / PR #2993 Implement `Clone` for `Linker`


view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2021 at 17:37):

alexcrichton opened PR #2993 from clone-linker to main:

There's no real reason to not do this, and it can help with some
usability use cases!

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2021 at 17:44):

peterhuene submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2021 at 18:02):

sunfishcode created PR review comment:

It looks like all the fields are cloned; could this use #[derive(Clone)] instead?

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2021 at 18:02):

sunfishcode submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2021 at 18:04):

pchickey submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2021 at 18:04):

pchickey created PR review comment:

Deriving clone would constrain it to T: Clone which is not what we want

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2021 at 18:11):

sunfishcode submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2021 at 18:11):

sunfishcode created PR review comment:

Ah, ok.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2021 at 21:06):

alexcrichton merged PR #2993.


Last updated: Oct 23 2024 at 20:03 UTC