From c3dc5f78c7430d3a6b2234703e9c0c578f3dedb7 Mon Sep 17 00:00:00 2001 From: Adam Hearn <22334119+hearnadam@users.noreply.github.com> Date: Wed, 8 May 2024 10:58:32 -0600 Subject: [PATCH 1/2] fix warnings --- src/codegen/function.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(", ")) } From e2049e813cc3e037747523ef63c6dbef754f9b4a Mon Sep 17 00:00:00 2001 From: Adam Hearn <22334119+hearnadam@users.noreply.github.com> Date: Wed, 8 May 2024 10:59:17 -0600 Subject: [PATCH 2/2] remove trailing whitespace --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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