From 68cd22e395461c239efc6062c29055db0e76727e Mon Sep 17 00:00:00 2001 From: kousei yamashita Date: Wed, 13 Mar 2024 00:19:22 +0900 Subject: [PATCH] remove a drop call that shows warning --- lib/skc_rustlib/src/builtin/file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/skc_rustlib/src/builtin/file.rs b/lib/skc_rustlib/src/builtin/file.rs index f92782f0..fc570d25 100644 --- a/lib/skc_rustlib/src/builtin/file.rs +++ b/lib/skc_rustlib/src/builtin/file.rs @@ -62,7 +62,7 @@ impl SkFile { extern "C" fn file_finalizer(obj: *mut c_void, _data: *mut c_void) { let shiika_file = obj as *mut ShiikaFile; - std::mem::drop(SkFile(shiika_file).file_mut()); + SkFile(shiika_file).file_mut(); } #[allow(non_snake_case)]