Skip to content

Commit 5af2333

Browse files
authored
fix: cargo build warning (#148)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
1 parent 7818f91 commit 5af2333

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jieba/src/posseg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fn parse_posseg_data(data: &str) -> PossegData {
3636
let mut tags: Vec<Box<str>> = Vec::new();
3737
let mut start_prob = [MIN_FLOAT; NUM_STATES];
3838
// Initialize dense matrix to MIN_FLOAT
39-
let mut trans_prob = vec![[MIN_FLOAT; NUM_STATES]; NUM_STATES].into_boxed_slice();
39+
let trans_prob = vec![[MIN_FLOAT; NUM_STATES]; NUM_STATES].into_boxed_slice();
4040
let trans_prob: Box<[[f64; NUM_STATES]; NUM_STATES]> = unsafe {
4141
let ptr = Box::into_raw(trans_prob) as *mut [[f64; NUM_STATES]; NUM_STATES];
4242
Box::from_raw(ptr)

0 commit comments

Comments
 (0)