From 3c2b8d68daa6d3bacd20360edf774a66b750d8e7 Mon Sep 17 00:00:00 2001 From: limuy Date: Sun, 12 May 2024 09:38:38 +0800 Subject: [PATCH] fix release warnings --- libcore/src/dynadata.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libcore/src/dynadata.rs b/libcore/src/dynadata.rs index f7a66af2..e4f0f293 100644 --- a/libcore/src/dynadata.rs +++ b/libcore/src/dynadata.rs @@ -1,7 +1,5 @@ -use core::panic; -use std::{collections::HashMap, mem::size_of, sync::OnceLock}; - use crate::gc::GcMgr; +use std::{mem::size_of, sync::OnceLock}; pub type Byte = u8; @@ -22,7 +20,7 @@ pub struct DynaData { size_used: Vec, #[cfg(debug_assertions)] // 起始地址到终点地址的映射 - mapped_var: HashMap, + mapped_var: std::collections::HashMap, } impl DynaData {