Skip to content

Commit

Permalink
fix: remove useless import (#967)
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <[email protected]>
  • Loading branch information
zong-zhe authored Dec 28, 2023
1 parent 0cbd400 commit 3384cb1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions kclvm/parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ pub use crate::session::ParseSession;
use compiler_base_macros::bug;
use compiler_base_session::Session;
use compiler_base_span::span::new_byte_pos;
use entry::Entries;
use indexmap::IndexMap;
use kclvm_ast::ast;
use kclvm_config::modfile::{get_vendor_home, KCL_FILE_EXTENSION, KCL_FILE_SUFFIX, KCL_MOD_FILE};
use kclvm_config::path::ModRelativePath;
use kclvm_error::diagnostic::Range;
use kclvm_error::{ErrorKind, Message, Style};
use kclvm_sema::plugin::PLUGIN_MODULE_PREFIX;
Expand All @@ -29,7 +27,7 @@ use kclvm_utils::pkgpath::rm_external_pkg_name;

use lexer::parse_token_streams;
use parser::Parser;
use std::collections::{HashMap, VecDeque};
use std::collections::HashMap;
use std::path::PathBuf;
use std::sync::{Arc, RwLock};

Expand Down
2 changes: 1 addition & 1 deletion kclvm/tools/src/LSP/src/rename.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use kclvm_sema::{
advanced_resolver::AdvancedResolver, core::global_state::GlobalState, namer::Namer,
resolver::resolve_program_with_opts,
};
use lsp_types::{Location, Position, Range, TextEdit, Url};
use lsp_types::{Position, Range, TextEdit};
use parking_lot::RwLock;
use ra_ap_vfs::{Vfs, VfsPath};
use std::fs;
Expand Down
2 changes: 1 addition & 1 deletion kclvm/tools/src/LSP/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use kclvm_span::symbol::reserved;
use kclvm_utils::pkgpath::rm_external_pkg_name;
use lsp_types::{Location, Position, Range, Url};
use parking_lot::{RwLock, RwLockReadGuard};
use ra_ap_vfs::{FileId, Vfs, VfsPath};
use ra_ap_vfs::{FileId, Vfs};
use serde::{de::DeserializeOwned, Serialize};

use std::collections::HashMap;
Expand Down

0 comments on commit 3384cb1

Please sign in to comment.