mirror of
https://github.com/nushell/nushell.git
synced 2025-03-26 15:26:51 +01: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
@ -763,7 +763,7 @@ pub fn parse_use(
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Extend the current scope with the module's overlay
|
// 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
|
// Create the Use command call
|
||||||
let use_decl_id = working_set
|
let use_decl_id = working_set
|
||||||
|
@ -595,7 +595,7 @@ impl<'a> StateWorkingSet<'a> {
|
|||||||
decl_id
|
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
|
let scope_frame = self
|
||||||
.delta
|
.delta
|
||||||
.scope
|
.scope
|
||||||
|
Loading…
Reference in New Issue
Block a user