From 8fca301608b774bdd98dc6c4610aaf22954c59db Mon Sep 17 00:00:00 2001 From: cassanof Date: Thu, 17 Aug 2023 23:55:23 -0700 Subject: [PATCH] fix --- rbx_types/src/shared_string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rbx_types/src/shared_string.rs b/rbx_types/src/shared_string.rs index f0519b8da..2ed5923da 100644 --- a/rbx_types/src/shared_string.rs +++ b/rbx_types/src/shared_string.rs @@ -103,7 +103,7 @@ impl Drop for SharedString { // If the reference we're about to drop is the very last reference to // the buffer, we'll be able to unwrap it and remove it from the // SharedString cache. - if Arc::try_unwrap(self.data.take().unwrap()).is_ok() { + if Arc::into_inner(self.data.take().unwrap()).is_some() { let mut cache = match STRING_CACHE.lock() { Ok(v) => v, Err(_) => {