diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 59642d0..1fa0f35 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,7 +27,7 @@ impl<T: Ord> AVLTreeSet<T> { Self { root: None } } - pub fn find(self, value: T) -> bool { + pub fn find(&self, value: T) -> bool { let mut current_tree = &self.root; while let Some(current_node) = current_tree { |