Skip to content

Commit 0ee715e

Browse files
committed
remove mut x
1 parent b070ce7 commit 0ee715e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/search.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub fn crf_beam_search<D: Data<Elem = f32>>(
136136
return Err(SearchError::RanOutOfBeam);
137137
}
138138
let top = beam[0].probability();
139-
for mut x in &mut beam {
139+
for x in &mut beam {
140140
x.label_prob /= top;
141141
x.gap_prob /= top;
142142
}
@@ -276,7 +276,7 @@ pub fn beam_search<D: Data<Elem = f32>>(
276276
return Err(SearchError::RanOutOfBeam);
277277
}
278278
let top = beam[0].probability();
279-
for mut x in &mut beam {
279+
for x in &mut beam {
280280
x.label_prob /= top;
281281
x.gap_prob /= top;
282282
}

0 commit comments

Comments
 (0)