Skip to content

Commit f6b0888

Browse files
committed
Revert unintentional change
Signed-off-by: akhilles <[email protected]>
1 parent 3441c6b commit f6b0888

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,6 @@ inherits = "release"
118118

119119
# Optimize for size + performance
120120
[profile.release]
121-
# lto = "fat" # Maximum link-time optimization
122-
# codegen-units = 1 # Better optimization
121+
lto = "fat" # Maximum link-time optimization
122+
codegen-units = 1 # Better optimization
123123
strip = "debuginfo" # Strip debug symbols

crates/pcb-zen-core/src/lang/eval.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ use starlark::{
2222
};
2323
use starlark::{codemap::ResolvedSpan, collections::SmallMap};
2424

25-
use crate::lang::assert::assert_globals;
2625
use crate::lang::file::file_globals;
2726
use crate::lang::input::{InputMap, InputValue};
2827
use crate::lang::spice_model::model_globals;
28+
use crate::lang::{assert::assert_globals, metadata::MetadataStore};
2929
use crate::lang::{
3030
builtin::builtin_globals,
3131
component::component_globals,
@@ -207,7 +207,7 @@ struct EvalContextState {
207207
load_in_progress: HashMap<PathBuf, PathBuf>,
208208

209209
/// Global metadata store for mutable state that persists across module boundaries
210-
metadata_store: crate::lang::metadata::MetadataStore,
210+
metadata_store: MetadataStore,
211211
}
212212

213213
/// RAII guard that automatically removes a path from the load_in_progress set when dropped.
@@ -1195,7 +1195,7 @@ impl EvalContext {
11951195
/// Access the metadata store mutably (for push operations)
11961196
pub fn with_metadata_store_mut<F, R>(&self, f: F) -> anyhow::Result<R>
11971197
where
1198-
F: FnOnce(&mut crate::lang::metadata::MetadataStore) -> R,
1198+
F: FnOnce(&mut MetadataStore) -> R,
11991199
{
12001200
let mut state = self.state.lock().unwrap();
12011201
Ok(f(&mut state.metadata_store))
@@ -1204,7 +1204,7 @@ impl EvalContext {
12041204
/// Access the metadata store immutably (for get/list operations)
12051205
pub fn with_metadata_store<F, R>(&self, f: F) -> anyhow::Result<R>
12061206
where
1207-
F: FnOnce(&crate::lang::metadata::MetadataStore) -> R,
1207+
F: FnOnce(&MetadataStore) -> R,
12081208
{
12091209
let state = self.state.lock().unwrap();
12101210
Ok(f(&state.metadata_store))

0 commit comments

Comments
 (0)