Skip to content

Commit 1a142d1

Browse files
committed
chore: remove imports
1 parent 88b60a4 commit 1a142d1

3 files changed

Lines changed: 5 additions & 23 deletions

File tree

libs/@local/hashql/core/src/collections/pool.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
//! assert_eq!(vec2.len(), 0);
4444
//! ```
4545
46-
use std::alloc::{Allocator, Global};
46+
use alloc::alloc::Global;
47+
use core::alloc::Allocator;
4748

4849
use crate::id::{Id, bit_vec::MixedBitSet};
4950

libs/@local/hashql/core/src/module/std_lib/graph/entity.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ use crate::{
55
locals::TypeDef,
66
std_lib::{
77
self, CacheId, ModuleCache, ModuleDef, StandardLibraryContext, StandardLibraryModule,
8-
core::{func, option::types::option},
9-
decl,
8+
core::func, decl,
109
},
1110
},
1211
symbol::{Symbol, sym},
@@ -70,7 +69,7 @@ impl<'heap> StandardLibraryModule<'heap> for Entity {
7069
let decl = decl!(context;
7170
<T>(entity: context.ty.apply([(entity_ty.arguments[0].id, T)], entity_ty.id),
7271
path: json_path_ty.id
73-
) -> option(&context.ty, context.ty.unknown())
72+
) -> context.ty.unknown()
7473
);
7574

7675
func(

libs/@local/hashql/mir/src/intrinsic.rs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
use hashql_core::{
2-
id::{Id, IdVec},
3-
intern::Interned,
4-
module::std_lib::{core::json, graph::types::knowledge::entity::types::entity},
5-
span::SpanId,
6-
symbol::sym,
7-
r#type::{TypeBuilder, environment::Environment},
8-
};
9-
10-
use crate::{
11-
body::{
12-
Body, Source,
13-
basic_block::{BasicBlock, BasicBlockVec},
14-
basic_blocks::BasicBlocks,
15-
local::LocalDecl,
16-
terminator::{Terminator, TerminatorKind},
17-
},
18-
def::DefId,
19-
};
1+
use hashql_core::id::Id;
202

213
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Id)]
224
#[repr(u8)]

0 commit comments

Comments
 (0)