summaryrefslogtreecommitdiff
path: root/rust/src/debuginfo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/debuginfo.rs')
-rw-r--r--rust/src/debuginfo.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/debuginfo.rs b/rust/src/debuginfo.rs
index ac398334..d53faef3 100644
--- a/rust/src/debuginfo.rs
+++ b/rust/src/debuginfo.rs
@@ -390,7 +390,7 @@ impl DebugInfo {
let result: Vec<Ref<NameAndType>> = unsafe {
slice::from_raw_parts_mut(debug_types_ptr, count)
.iter()
- .map(NameAndType::from_raw)
+ .map(|x| NameAndType::from_raw(x).to_owned())
.collect()
};
@@ -405,7 +405,7 @@ impl DebugInfo {
let result: Vec<Ref<NameAndType>> = unsafe {
slice::from_raw_parts_mut(debug_types_ptr, count)
.iter()
- .map(NameAndType::from_raw)
+ .map(|x| NameAndType::from_raw(x).to_owned())
.collect()
};