Skip to content

Commit

Permalink
Use lint toolchain in program lint script (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec authored Aug 1, 2024
1 parent 5280629 commit afc1c6d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/ten-llamas-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-solana-program": patch
---

Updates Rust linting scripts to use the proper toolchain.
2 changes: 1 addition & 1 deletion template/base/scripts/program/lint.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
const lintArgs = cliArguments();

const fix = popArgument(lintArgs, '--fix');
const toolchain = getToolchainArgument('format');
const toolchain = getToolchainArgument('lint');

// Lint the programs using clippy.
await Promise.all(
Expand Down
2 changes: 1 addition & 1 deletion template/clients/rust/scripts/client/lint-rust.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
const lintArgs = cliArguments();

const fix = popArgument(lintArgs, '--fix');
const toolchain = getToolchainArgument('format');
const toolchain = getToolchainArgument('lint');
const manifestPath = path.join(
workingDirectory,
'clients',
Expand Down

0 comments on commit afc1c6d

Please sign in to comment.