Skip to content

Commit 07bc770

Browse files
committed
Make namespaces internals private
1 parent d82ca34 commit 07bc770

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/environment.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -527,11 +527,7 @@ mod tests {
527527
curr_ns_sym: _,
528528
namespaces,
529529
}) => namespaces
530-
.0
531-
.borrow()
532-
.get(&Symbol::intern("user"))
533-
.unwrap()
534-
.get(&Symbol::intern("+")),
530+
.get(&Symbol::intern("user"),&Symbol::intern("+")),
535531
_ => panic!("new_main_environment() should return Main"),
536532
};
537533

src/namespace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl Namespace {
3030
}
3131
}
3232
#[derive(Debug, Clone)]
33-
pub struct Namespaces(pub RefCell<HashMap<Symbol, Namespace>>);
33+
pub struct Namespaces(RefCell<HashMap<Symbol, Namespace>>);
3434

3535
impl Namespaces {
3636
pub fn new() -> Namespaces {

0 commit comments

Comments
 (0)