From 1fe777a479966e032a918844dfb4141d459e01f6 Mon Sep 17 00:00:00 2001 From: kaivol Date: Wed, 3 May 2023 12:55:46 +0200 Subject: [PATCH] Fix `unused_mut` warning. Likely related to https://github.com/rust-lang/rust/issues/110849 --- crates/libs/core/src/strings/hstring.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.