Skip to content

Commit

Permalink
Make namespaces internals private
Browse files Browse the repository at this point in the history
  • Loading branch information
Tko1 committed May 13, 2020
1 parent d82ca34 commit 07bc770
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,11 +527,7 @@ mod tests {
curr_ns_sym: _,
namespaces,
}) => namespaces
.0
.borrow()
.get(&Symbol::intern("user"))
.unwrap()
.get(&Symbol::intern("+")),
.get(&Symbol::intern("user"),&Symbol::intern("+")),
_ => panic!("new_main_environment() should return Main"),
};

Expand Down
2 changes: 1 addition & 1 deletion src/namespace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl Namespace {
}
}
#[derive(Debug, Clone)]
pub struct Namespaces(pub RefCell<HashMap<Symbol, Namespace>>);
pub struct Namespaces(RefCell<HashMap<Symbol, Namespace>>);

impl Namespaces {
pub fn new() -> Namespaces {
Expand Down

0 comments on commit 07bc770

Please sign in to comment.