Skip to content

Commit d2b6c9c

Browse files
authored
Merge pull request #323 from baszalmstra/feat/implement_clone_rooted_struct
feat: derive clone for RootedStruct
2 parents 72dfbe2 + 1464216 commit d2b6c9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/mun_runtime/src/adt.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ impl<'s> Marshal<'s> for StructRef<'s> {
289289

290290
/// Type-agnostic wrapper for interoperability with a Mun struct, that has been rooted. To marshal,
291291
/// obtain a `StructRef` for the `RootedStruct`.
292+
#[derive(Clone)]
292293
pub struct RootedStruct {
293294
handle: GcRootPtr,
294295
runtime: Rc<RefCell<Runtime>>,

0 commit comments

Comments
 (0)