Skip to content

Commit 0d02e9b

Browse files
author
sicheng
committed
Fix lint
1 parent 7bd5c7c commit 0d02e9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust/types/src/regex/literal_expr.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ mod tests {
288288
use super::{Literal, NgramLiteralProvider};
289289

290290
struct StaticLiteralProvider {
291+
#[allow(clippy::type_complexity)]
291292
inverted_literal_index: Vec<(String, Vec<(u32, Vec<u32>)>)>,
292293
}
293294

@@ -309,7 +310,7 @@ mod tests {
309310
.iter()
310311
.filter(|(literal, _)| ngram_range.contains(&literal.as_str()))
311312
.flat_map(|(literal, m)| {
312-
m.into_iter()
313+
m.iter()
313314
.map(|(doc, pos)| (literal.as_str(), *doc, pos.as_slice()))
314315
})
315316
.collect())

0 commit comments

Comments
 (0)