From d552ae9beae6404c13548b98ec7a7ec4e6b3dd90 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Thu, 21 Jul 2022 15:24:16 -0400 Subject: [Rust API] Better name for this trait fn, more CC support --- rust/src/symbol.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rust/src/symbol.rs') 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 SymbolBuilder { } pub fn create(self) -> Ref { - 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 _; -- cgit v1.3.1