diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cf2f65c..c556dbd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -34,7 +34,7 @@ jobs: - name: Check formatting run: cargo fmt -- --check - name: Clippy - run: cargo clippy -- -Dwarnings + run: cargo clippy -- -Dwarnings - name: Tests run: cargo test --all-features diff --git a/src/codegen/function.rs b/src/codegen/function.rs index 0baa20f..089b9ca 100644 --- a/src/codegen/function.rs +++ b/src/codegen/function.rs @@ -123,7 +123,7 @@ impl Render for Function { if outs.is_empty() { "Unit".to_owned() } else if outs.len() == 1 { - outs.get(0).unwrap().clone() + outs.first().unwrap().clone() } else { format!("({})", outs.join(", ")) }