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/symbol.rs | |
| parent | 2e18783a2f6e29c225d177e8a0fb866a9c9d85df (diff) | |
[Rust API] Better name for this trait fn, more CC support
Diffstat (limited to 'rust/src/symbol.rs')
| -rw-r--r-- | rust/src/symbol.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/src/symbol.rs b/rust/src/symbol.rs index 27e701dc..21ae440e 100644 --- a/rust/src/symbol.rs +++ b/rust/src/symbol.rs @@ -134,9 +134,9 @@ impl<S: BnStrCompatible> SymbolBuilder<S> { } pub fn create(self) -> Ref<Symbol> { - let raw_name = self.raw_name.as_bytes_with_nul(); - let short_name = self.short_name.map(|s| s.as_bytes_with_nul()); - let full_name = self.full_name.map(|s| s.as_bytes_with_nul()); + let raw_name = self.raw_name.into_bytes_with_nul(); + let short_name = self.short_name.map(|s| s.into_bytes_with_nul()); + let full_name = self.full_name.map(|s| s.into_bytes_with_nul()); unsafe { let raw_name = raw_name.as_ref().as_ptr() as *mut _; |
