chore: cleanup
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
use ecow::EcoString;
|
||||
use hashbrown::HashMap;
|
||||
|
||||
use crate::ty::common::Const;
|
||||
use crate::ir::{DowngradeContext, Ir};
|
||||
use crate::ir::{DowngradeContext, Ir, Const};
|
||||
|
||||
pub fn ir_env(ctx: &mut DowngradeContext) -> HashMap<usize, Ir> {
|
||||
pub fn ir_env(ctx: &mut DowngradeContext) -> HashMap<EcoString, Ir> {
|
||||
let mut map = HashMap::new();
|
||||
map.insert(ctx.new_sym("true"), ctx.new_const(Const::Bool(true)).ir());
|
||||
map.insert(ctx.new_sym("false"), ctx.new_const(Const::Bool(false)).ir());
|
||||
|
||||
map.insert("true".into(), Const::from(true).ir());
|
||||
map.insert("false".into(), Const::from(false).ir());
|
||||
map
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user