Skip to content

Commit 5198c64

Browse files
committed
wip
1 parent 013a99e commit 5198c64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/no_effect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ fn reduce_expression<'a>(
369369
&& let Some(end) = range.end =>
370370
{
371371
if [start, end].into_iter().any(|e| expr_type_is_certain(cx, e)) {
372-
Some([start, end].into_iter().collect())
372+
Some(vec![start, end])
373373
} else {
374374
None
375375
}

0 commit comments

Comments
 (0)