diff --git a/crates/libs/core/src/strings/hstring.rs b/crates/libs/core/src/strings/hstring.rs index 72bbba8c1e..93c989bc72 100644 --- a/crates/libs/core/src/strings/hstring.rs +++ b/crates/libs/core/src/strings/hstring.rs @@ -66,7 +66,7 @@ impl HSTRING { return Ok(Self::new()); } - let mut ptr = Header::alloc(len)?; + let ptr = Header::alloc(len)?; // Place each utf-16 character into the buffer and // increase len as we go along.