From 2c0c81a934cd7f0bbe7c17ba7de3473a7f7e1741 Mon Sep 17 00:00:00 2001 From: peamaeq Date: Wed, 18 May 2022 12:26:18 +0800 Subject: [PATCH] '0517' --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d6f9411..d60ef6e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -884,10 +884,10 @@ impl Drop for LruCache { }); // We rebox the head/tail, and because these are maybe-uninit // they do not have the absent k/v dropped. - unsafe { - let _head = *Box::from_raw(self.head); - let _tail = *Box::from_raw(self.tail); - } + + let _head = unsafe { *Box::from_raw(self.head) }; + let _tail = unsafe { *Box::from_raw(self.tail) }; + } }