Skip to content

Commit

Permalink
Merge pull request #103 from xsnippet/clippy
Browse files Browse the repository at this point in the history
Add Clippy to GitHub Actions checks
  • Loading branch information
ikalnytskyi committed Jul 26, 2020
2 parents 58ab2bb + fa2f3f8 commit 4a7b6e1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,23 @@ jobs:
command: fmt
args: --all -- --check

cargo-clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
components: clippy
override: true

- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings

cargo-test:
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ pub fn create_app() -> Result<rocket::Rocket, Box<dyn Error>> {
};

Ok(app
.manage(Config { syntaxes: syntaxes })
.manage(Config { syntaxes })
.mount("/v1", routes![routes::syntaxes::get_syntaxes]))
}

0 comments on commit 4a7b6e1

Please sign in to comment.