We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 50bb7e7 + e2049e8 commit 446c1c1Copy full SHA for 446c1c1
.github/workflows/ci.yaml
@@ -34,7 +34,7 @@ jobs:
34
- name: Check formatting
35
run: cargo fmt -- --check
36
- name: Clippy
37
- run: cargo clippy -- -Dwarnings
+ run: cargo clippy -- -Dwarnings
38
- name: Tests
39
run: cargo test --all-features
40
src/codegen/function.rs
@@ -123,7 +123,7 @@ impl Render for Function {
123
if outs.is_empty() {
124
"Unit".to_owned()
125
} else if outs.len() == 1 {
126
- outs.get(0).unwrap().clone()
+ outs.first().unwrap().clone()
127
} else {
128
format!("({})", outs.join(", "))
129
}
0 commit comments