Skip to content

Commit 4f7b547

Browse files
committed
Fixed clippy warning
1 parent ea756cb commit 4f7b547

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

rusty_linter/src/converter/common/program_rules.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ impl Convertible for Program {
1313
let mut global_statements: Self = vec![];
1414
for Positioned { element, pos } in self {
1515
let expanded_statements_for_element = element.convert_in(ctx, pos)?;
16-
global_statements.extend(expanded_statements_for_element.into_iter());
16+
global_statements.extend(expanded_statements_for_element);
1717
}
1818

1919
// collect implicitly defined variables

rusty_variant/src/bits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ fn f64_to_bits_for_normalized_value(
121121
// insert the significant bits
122122
for bit in int_bits
123123
.into_iter()
124-
.chain(fraction_bits.into_iter())
124+
.chain(fraction_bits)
125125
.take(DOUBLE_SIGNIFICANT_BITS)
126126
{
127127
bits.push(bit);

0 commit comments

Comments
 (0)