diff --git a/crates/nu-parser/src/parse_keywords.rs b/crates/nu-parser/src/parse_keywords.rs index 8ee625ff..b1778cad 100644 --- a/crates/nu-parser/src/parse_keywords.rs +++ b/crates/nu-parser/src/parse_keywords.rs @@ -763,7 +763,7 @@ pub fn parse_use( }; // Extend the current scope with the module's overlay - working_set.add_decls(decls_to_use); + working_set.use_decls(decls_to_use); // Create the Use command call let use_decl_id = working_set diff --git a/crates/nu-protocol/src/engine/engine_state.rs b/crates/nu-protocol/src/engine/engine_state.rs index 7474e18e..277a736c 100644 --- a/crates/nu-protocol/src/engine/engine_state.rs +++ b/crates/nu-protocol/src/engine/engine_state.rs @@ -595,7 +595,7 @@ impl<'a> StateWorkingSet<'a> { decl_id } - pub fn add_decls(&mut self, decls: Vec<(Vec, DeclId)>) { + pub fn use_decls(&mut self, decls: Vec<(Vec, DeclId)>) { let scope_frame = self .delta .scope