diff options
| author | Glenn Smith <glenn@vector35.com> | 2022-07-21 15:24:16 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2022-09-29 21:02:22 -0400 |
| commit | d552ae9beae6404c13548b98ec7a7ec4e6b3dd90 (patch) | |
| tree | 00a2696b2a3a33b1ac5bb058801fdea9f1a38c03 /rust/src/section.rs | |
| parent | 2e18783a2f6e29c225d177e8a0fb866a9c9d85df (diff) | |
[Rust API] Better name for this trait fn, more CC support
Diffstat (limited to 'rust/src/section.rs')
| -rw-r--r-- | rust/src/section.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/src/section.rs b/rust/src/section.rs index 9790801c..da43763d 100644 --- a/rust/src/section.rs +++ b/rust/src/section.rs @@ -245,10 +245,10 @@ impl<S: BnStrCompatible> SectionBuilder<S> { } pub(crate) fn create(self, view: &BinaryView) { - let name = self.name.as_bytes_with_nul(); - let ty = self._ty.map(|s| s.as_bytes_with_nul()); - let linked_section = self.linked_section.map(|s| s.as_bytes_with_nul()); - let info_section = self.info_section.map(|s| s.as_bytes_with_nul()); + let name = self.name.into_bytes_with_nul(); + let ty = self._ty.map(|s| s.into_bytes_with_nul()); + let linked_section = self.linked_section.map(|s| s.into_bytes_with_nul()); + let info_section = self.info_section.map(|s| s.into_bytes_with_nul()); let start = self.range.start; let len = self.range.end.wrapping_sub(start); |
