mirror of
https://github.com/nushell/nushell
synced 2024-12-27 13:33:16 +00:00
Rename add_decls() to use_decls() (#395)
To reflect better what the method actually does.
This commit is contained in:
parent
d8c721282b
commit
124561ff12
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -595,7 +595,7 @@ impl<'a> StateWorkingSet<'a> {
|
|||
decl_id
|
||||
}
|
||||
|
||||
pub fn add_decls(&mut self, decls: Vec<(Vec<u8>, DeclId)>) {
|
||||
pub fn use_decls(&mut self, decls: Vec<(Vec<u8>, DeclId)>) {
|
||||
let scope_frame = self
|
||||
.delta
|
||||
.scope
|
||||
|
|
Loading…
Reference in a new issue