Skip to content

Commit

Permalink
Merge pull request #4 from hearnadam/master
Browse files Browse the repository at this point in the history
fix CI
  • Loading branch information
vigoo authored May 8, 2024
2 parents 50bb7e7 + e2049e8 commit 446c1c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/codegen/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(", "))
}
Expand Down

0 comments on commit 446c1c1

Please sign in to comment.