From 527bfba9997ce61e3608010271c4aaa5419f55a1 Mon Sep 17 00:00:00 2001 From: Agent Smith <1769712655@qq.com> Date: Tue, 1 Aug 2023 16:32:01 +0800 Subject: [PATCH] fix: cargo fmt --- src/ast/ctx.rs | 3 +-- src/ast/pltype.rs | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) 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;