From 4c419972f528952362bde2635524c5bbf33f4e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Mon, 7 Aug 2023 17:38:44 +0300 Subject: [PATCH] Update Clippy and fix lints --- .github/workflows/workspace.yml | 2 +- fiat-constify/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workspace.yml b/.github/workflows/workspace.yml index 80c32293..7ba10db3 100644 --- a/.github/workflows/workspace.yml +++ b/.github/workflows/workspace.yml @@ -20,7 +20,7 @@ jobs: - uses: RustCrypto/actions/cargo-cache@master - uses: dtolnay/rust-toolchain@master with: - toolchain: 1.67.0 # Pinned to prevent breakages + toolchain: 1.71.0 # Pinned to prevent breakages components: clippy - run: cargo clippy --all --all-features -- -D warnings diff --git a/fiat-constify/src/main.rs b/fiat-constify/src/main.rs index b697190d..ccb69065 100644 --- a/fiat-constify/src/main.rs +++ b/fiat-constify/src/main.rs @@ -146,7 +146,7 @@ fn rewrite_fn_as_const(func: &mut ItemFn, type_registry: &TypeRegistry) { fn rewrite_fn_body(statements: &[Stmt], outputs: &Outputs, registry: &TypeRegistry) -> Block { let mut stmts = Vec::new(); - stmts.extend(outputs.to_let_bindings(registry).into_iter()); + stmts.extend(outputs.to_let_bindings(registry)); for stmt in statements { let mut stmt = stmt.clone();