Skip to content

Commit

Permalink
fix: consolidate clippy & rust config on top of main, all the rest ca…
Browse files Browse the repository at this point in the history
…uses duplication
  • Loading branch information
kristof-mattei committed Sep 1, 2023
1 parent 8ab8311 commit e158e41
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ jobs:
- name: Run Clippy for GitHub Actions report
uses: actions-rs-plus/clippy-check@9035ac35de400d5b7d37b4ce176ebd153e424d29 # v2
with:
args: --workspace --all-targets --all-features -- --deny clippy::all --deny clippy::pedantic --deny clippy::cargo
args: --workspace --all-targets --all-features

docker-build:
name: Build Docker container
Expand Down
13 changes: 1 addition & 12 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,7 @@
{
"type": "cargo",
"command": "clippy",
"args": [
"--workspace",
"--all-targets",
"--all-features",
"--",
"--deny",
"clippy::all",
"--deny",
"clippy::pedantic",
"--deny",
"clippy::cargo"
],
"args": ["--workspace", "--all-targets", "--all-features"],
"problemMatcher": ["$rustc"],
"group": "build",
"label": "Rust: cargo clippy"
Expand Down
Empty file removed clippy.toml
Empty file.
6 changes: 4 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#![cfg_attr(not(debug_assertions), deny(warnings))]
#![deny(clippy::all)]
#![deny(clippy::pedantic)]
#![deny(clippy::cargo)]
#![forbid(non_ascii_idents)]
#![deny(warnings)]
// exceptions
#![deny(let_underscore_drop)]
#![deny(non_ascii_idents)]
#![allow(clippy::uninlined_format_args)]

// use std::path::PathBuf;
Expand Down

0 comments on commit e158e41

Please sign in to comment.