summaryrefslogtreecommitdiff
path: root/rust/src/debuginfo.rs
diff options
context:
space:
mode:
authorRyan Snyder <ryan@vector35.com>2024-05-01 10:43:58 -0400
committerRyan Snyder <ryan@vector35.com>2024-05-01 10:43:58 -0400
commit87b1470b2de74640c856d8a90ba88ec672713d71 (patch)
treeefcdf60ca4b7709b30221cf1e2898c6fc89254b8 /rust/src/debuginfo.rs
parent8817116bee33f3d8bee71fbd82b1220deb10993d (diff)
rust: account for changes to NameAndType bindings
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()
};