Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: Fix template code shouldn't escape #3210

Merged
merged 2 commits into from
Aug 30, 2024
Merged

Conversation

lak02
Copy link
Contributor

@lak02 lak02 commented Aug 29, 2024

machine
rust version: 1.80.1
anchor version: 0.30.1
arch: macOS Sonoma arm64

process:

anchor init program-name
anchor test

then

error: argument never used
 --> programs/program-name/src/instructions/initialize.rs:7:36
  |
7 |     msg!("Greetings from: {{:?}}", ctx.program_id);
  |          ------------------------  ^^^^^^^^^^^^^^ argument never used
  |          |
  |          formatting specifier missing

warning: unused import: `state::*`
  --> programs/program-name/src/lib.rs:10:9
   |
10 | pub use state::*;
   |         ^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: `program-name` (lib) generated 1 warning
error: could not compile `program-name` (lib) due to previous error; 1 warning emitted

connect conversation of the previous closed pr
https://github.com/coral-xyz/anchor/pull/3205/files/fd6c683ce5afd6e150a676a2fe992d0497ec3b90#r1736018760

Copy link

vercel bot commented Aug 29, 2024

@lak02 is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

@lak02 lak02 changed the title fix: template format! not work cli: fix template format! not work Aug 29, 2024
@lak02 lak02 closed this Aug 29, 2024
@lak02 lak02 reopened this Aug 29, 2024
@lak02 lak02 closed this Aug 29, 2024
@lak02 lak02 changed the title cli: fix template format! not work cli: Fix template code shouldn't escape Aug 29, 2024
@lak02 lak02 reopened this Aug 29, 2024
@acheroncrypto acheroncrypto added cli fix Bug fix PR labels Aug 30, 2024
Copy link
Collaborator

@acheroncrypto acheroncrypto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@acheroncrypto acheroncrypto merged commit 8e9f1e7 into coral-xyz:master Aug 30, 2024
49 of 50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli fix Bug fix PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants