From b3407733639921aea626b3d9721c1b7486111b1a Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 25 Jun 2024 15:02:32 -0500 Subject: [PATCH] delay linking --- crates/libs/strings/src/hstring.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/libs/strings/src/hstring.rs b/crates/libs/strings/src/hstring.rs index 85135f7683..53f8b9190a 100644 --- a/crates/libs/strings/src/hstring.rs +++ b/crates/libs/strings/src/hstring.rs @@ -104,6 +104,7 @@ impl Clone for HSTRING { } impl Drop for HSTRING { + #[inline] fn drop(&mut self) { if self.is_empty() { return; @@ -422,6 +423,7 @@ struct Header { } impl Header { + #[inline] fn alloc(len: u32) -> Result<*mut Header> { debug_assert!(len != 0); // Allocate enough space for header and two bytes per character.