Skip to content

Commit af5033b

Browse files
committed
Add type annotations on BBDTree constructor
1 parent 7c39ace commit af5033b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/algorithm/neighbour/bbd_tree.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ impl BBDTreeNode {
4040

4141
impl BBDTree {
4242
pub fn new<T: Number, M: Array2<T>>(data: &M) -> BBDTree {
43-
let nodes = Vec::new();
43+
let nodes: Vec<BBDTreeNode> = Vec::new();
4444

4545
let (n, _) = data.shape();
4646

47-
let index = (0..n).collect::<Vec<_>>();
47+
let index = (0..n).collect::<Vec<usize>>();
4848

4949
let mut tree = BBDTree {
5050
nodes,

0 commit comments

Comments
 (0)