Skip to content

Commit bacf9df

Browse files
committed
refactor: Tree internals
BREAKING CHANGE: remove Deref/DrefMut to "TreeInterface", which has been removed.
1 parent 7c68f28 commit bacf9df

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/trees/tree.rs

-16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
use std::ops::Deref;
2-
use std::ops::DerefMut;
3-
41
use crate::sys::bindings as ll_bindings;
52
use crate::sys::{LLTree, TreeSequence};
63
use crate::Position;
@@ -17,19 +14,6 @@ pub struct Tree<'treeseq> {
1714
advanced: i32,
1815
}
1916

20-
impl Deref for Tree<'_> {
21-
type Target = TreeInterface;
22-
fn deref(&self) -> &Self::Target {
23-
&self.api
24-
}
25-
}
26-
27-
impl DerefMut for Tree<'_> {
28-
fn deref_mut(&mut self) -> &mut Self::Target {
29-
&mut self.api
30-
}
31-
}
32-
3317
impl<'treeseq> Tree<'treeseq> {
3418
pub(crate) fn new<F: Into<TreeFlags>>(
3519
ts: &'treeseq crate::sys::TreeSequence,

0 commit comments

Comments
 (0)