@@ -22,10 +22,10 @@ use starlark::{
2222} ;
2323use starlark:: { codemap:: ResolvedSpan , collections:: SmallMap } ;
2424
25- use crate :: lang:: assert:: assert_globals;
2625use crate :: lang:: file:: file_globals;
2726use crate :: lang:: input:: { InputMap , InputValue } ;
2827use crate :: lang:: spice_model:: model_globals;
28+ use crate :: lang:: { assert:: assert_globals, metadata:: MetadataStore } ;
2929use 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