From 8aaada4c7730623ab8e67e4fbf262cfdf803ac57 Mon Sep 17 00:00:00 2001 From: ScriptAndCompile Date: Thu, 13 Jun 2024 12:41:28 -0700 Subject: [PATCH] Removed pub from BinarySearchTreeIter since the struct is not public and it should only be created from inside the module itself. --- src/data_structures/binary_search_tree.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data_structures/binary_search_tree.rs b/src/data_structures/binary_search_tree.rs index 3a9b898..8f3e602 100644 --- a/src/data_structures/binary_search_tree.rs +++ b/src/data_structures/binary_search_tree.rs @@ -426,7 +426,7 @@ impl<'a, T> BinarySearchTreeIter<'a, T> where T: Ord, { - pub fn new(tree: &BinarySearchTree) -> BinarySearchTreeIter { + fn new(tree: &BinarySearchTree) -> BinarySearchTreeIter { let mut iter = BinarySearchTreeIter { stack: vec![tree] }; iter.stack_push_left(); iter