Skip to content

Commit afc1c6d

Browse files
authored
Use lint toolchain in program lint script (#83)
1 parent 5280629 commit afc1c6d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/ten-llamas-beam.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-solana-program": patch
3+
---
4+
5+
Updates Rust linting scripts to use the proper toolchain.

template/base/scripts/program/lint.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
const lintArgs = cliArguments();
1414

1515
const fix = popArgument(lintArgs, '--fix');
16-
const toolchain = getToolchainArgument('format');
16+
const toolchain = getToolchainArgument('lint');
1717

1818
// Lint the programs using clippy.
1919
await Promise.all(

template/clients/rust/scripts/client/lint-rust.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
const lintArgs = cliArguments();
1313

1414
const fix = popArgument(lintArgs, '--fix');
15-
const toolchain = getToolchainArgument('format');
15+
const toolchain = getToolchainArgument('lint');
1616
const manifestPath = path.join(
1717
workingDirectory,
1818
'clients',

0 commit comments

Comments
 (0)