From 20b5cac148b253cf75b6a25b380624a2340e4b8b Mon Sep 17 00:00:00 2001 From: Dorota Czaplejewicz Date: Sun, 15 Jan 2023 11:51:53 +0000 Subject: [PATCH] build: Silence overcautious warning --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index 06229d51..0b99ea88 100644 --- a/src/util.rs +++ b/src/util.rs @@ -153,7 +153,7 @@ pub mod c { // A bit dangerous: the Rc may be in use elsewhere let used_rc = unsafe { Arc::from_raw(self.0) }; let rc = used_rc.clone(); - Arc::into_raw(used_rc); // prevent dropping the original reference + let _ = Arc::into_raw(used_rc); // prevent dropping the original reference rc } }