Skip to content

Commit

Permalink
chore: don't use dprint exec
Browse files Browse the repository at this point in the history
  • Loading branch information
uonr committed Dec 20, 2023
1 parent 68d0312 commit 8e9e392
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,10 @@ jobs:
- uses: dprint/[email protected]
with:
dprint-version: 0.44.0

cargo-fmt:
name: Style (Rust)
container: rust:slim
steps:
- uses: actions/checkout@v2
- run: cargo fmt --all --check
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"editor.formatOnSave": true,
"dprint.path": "node_modules/.bin/dprint",
"editor.defaultFormatter": "dprint.dprint",
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer"
},
"[json]": {
"editor.defaultFormatter": "dprint.dprint"
},
Expand Down
9 changes: 1 addition & 8 deletions dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@
},
"toml": {
},
"exec": {
"commands": [{
"command": "rustfmt --edition 2021",
"exts": ["rs"]
}]
},
"includes": ["**/*.{ts,tsx,js,jsx,cjs,mjs,json,md,toml,rs}"],
"excludes": [
"**/node_modules",
Expand All @@ -31,7 +25,6 @@
"https://plugins.dprint.dev/typescript-0.88.7.wasm",
"https://plugins.dprint.dev/json-0.19.1.wasm",
"https://plugins.dprint.dev/markdown-0.16.3.wasm",
"https://plugins.dprint.dev/toml-0.5.4.wasm",
"https://plugins.dprint.dev/exec-0.4.4.json@c207bf9b9a4ee1f0ecb75c594f774924baf62e8e53a2ce9d873816a408cecbf7"
"https://plugins.dprint.dev/toml-0.5.4.wasm"
]
}

0 comments on commit 8e9e392

Please sign in to comment.