diff --git a/src/ast/ctx.rs b/src/ast/ctx.rs index 0898e6d19..8ca09143e 100644 --- a/src/ast/ctx.rs +++ b/src/ast/ctx.rs @@ -56,7 +56,6 @@ use rustc_hash::FxHashSet; use std::cell::RefCell; - use std::sync::Arc; mod builtins; mod references; @@ -1097,7 +1096,7 @@ impl<'a, 'ctx> Ctx<'a> { pub fn get_mod(&self, path: &str) -> Mod { let ori_mod = unsafe { &*self.origin_mod as &Mod }; - + if path == self.plmod.path { self.plmod.clone() } else if path == ori_mod.path { diff --git a/src/ast/pltype.rs b/src/ast/pltype.rs index dfb776f42..e9d616e8b 100644 --- a/src/ast/pltype.rs +++ b/src/ast/pltype.rs @@ -47,7 +47,6 @@ use lsp_types::SymbolKind; use rustc_hash::FxHashMap; use std::cell::RefCell; - use std::sync::atomic::AtomicI64; use std::sync::atomic::Ordering; use std::sync::Arc;