summaryrefslogtreecommitdiff
path: root/rust/src/binaryview.rs
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2021-06-08 17:23:28 -0400
committerKyleMiles <krm504@nyu.edu>2021-07-07 23:27:28 -0400
commit8785e9d1a931d7562053fd6045b660a6211fbc1d (patch)
tree4506696e861fcffa3e321bd32e00621a90a42693 /rust/src/binaryview.rs
parent013945b3efa885101db16990311093912775d1c6 (diff)
Rust API : Replace Platform::from_raw with Platform::ref_from_raw
Diffstat (limited to 'rust/src/binaryview.rs')
-rw-r--r--rust/src/binaryview.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/binaryview.rs b/rust/src/binaryview.rs
index b2b3dca6..21239fc2 100644
--- a/rust/src/binaryview.rs
+++ b/rust/src/binaryview.rs
@@ -247,7 +247,7 @@ pub trait BinaryViewExt: BinaryViewBase {
return None;
}
- Some(Ref::new(Platform::from_raw(raw)))
+ Some(Platform::ref_from_raw(raw))
}
}