Skip to content

Commit aef5658

Browse files
committed
CI clippy
1 parent fb54203 commit aef5658

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@ jobs:
2121
- uses: actions/checkout@v4
2222
with:
2323
fetch-depth: 1
24-
- uses: actions-rs/toolchain@v1
24+
- uses: actions-rust-lang/setup-rust-toolchain@v1
2525
with:
26-
profile: minimal
2726
toolchain: ${{ matrix.rust }}
28-
override: true
2927
components: rustfmt, clippy
3028
- name: Restore cache
31-
uses: actions/cache/restore@v3
29+
uses: actions/cache/restore@v4
3230
with:
3331
path: |
3432
~/.cargo/bin/
@@ -63,7 +61,7 @@ jobs:
6361
mkdir ./target/debug/coverage/
6462
grcov . -s . -b ./target/debug/ -o ./target/debug/coverage/ --ignore-not-existing --excl-line="grcov-excl-line|#\\[derive\\(|//!|///" --excl-start="grcov-excl-start" --excl-stop="grcov-excl-end" --ignore="*.cargo/*" --ignore="src/lib.rs" --ignore="tests/*"
6563
- name: Upload coverage reports to Codecov
66-
uses: codecov/codecov-action@v3
64+
uses: codecov/codecov-action@v4
6765
env:
6866
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
6967
with:

src/ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ pub struct FunctionStatement<'a, I: SemanticContextInstruction, E: ExtendedExpre
535535

536536
impl<'a, I: SemanticContextInstruction, E: ExtendedExpression<I>> FunctionStatement<'a, I, E> {
537537
#[must_use]
538-
pub fn new(
538+
pub const fn new(
539539
name: FunctionName<'a>,
540540
parameters: Vec<FunctionParameter<'a>>,
541541
result_type: Type<'a>,

0 commit comments

Comments
 (0)