0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-10-18 06:22:53 -04:00

Merge pull request #50 from XFFXFF/ci_format_and_clippy

fix: add missing format and clippy checks to the CI jobs
This commit is contained in:
neon_arch 2023-05-23 09:51:09 +00:00 committed by GitHub
commit 018f92526e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 8 deletions

View File

@ -19,7 +19,16 @@ jobs:
profile: minimal profile: minimal
toolchain: stable toolchain: stable
components: rustfmt, clippy components: rustfmt, clippy
- name: Format
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features --all-targets --all
- name: Run cargo check - name: Run cargo check
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:

View File

@ -81,7 +81,7 @@ pub async fn search(
.insert_header(("location", "/")) .insert_header(("location", "/"))
.finish()) .finish())
} else { } else {
let page_url: String; // Declare the page_url variable without initializing it let page_url: String; // Declare the page_url variable without initializing it
// ... // ...