From c8b7f5ce8bc364144a6ba83c37d9289999ea81e6 Mon Sep 17 00:00:00 2001 From: jinlow Date: Fri, 22 Dec 2023 22:48:36 +0000 Subject: [PATCH] Fix type --- src/histogram.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/histogram.rs b/src/histogram.rs index 1c76329..d8841a9 100644 --- a/src/histogram.rs +++ b/src/histogram.rs @@ -89,7 +89,7 @@ pub fn create_feature_histogram( sorted_hess: &[f32], index: &[usize], ) -> Vec> { - let mut histogram: Vec> = Vec::with_capacity(cuts.len()); + let mut histogram: Vec> = Vec::with_capacity(cuts.len()); let mut gradient_sums: Vec = Vec::with_capacity(cuts.len()); let mut hessian_sums: Vec = Vec::with_capacity(cuts.len());