Skip to content

Commit

Permalink
delay linking
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Jun 25, 2024
1 parent c65e7f3 commit b340773
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/libs/strings/src/hstring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ impl Clone for HSTRING {
}

impl Drop for HSTRING {
#[inline]
fn drop(&mut self) {
if self.is_empty() {
return;
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit b340773

Please sign in to comment.