Skip to content

Commit

Permalink
cli: Fix unused variable warning on new projects (#2930)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemaccana authored Apr 27, 2024
1 parent 81c8c55 commit 499e1e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/src/rust_template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ pub mod {} {{
use super::*;
pub fn initialize(ctx: Context<Initialize>) -> Result<()> {{
msg!("Greetings from: {{:?}}", ctx.program_id);
Ok(())
}}
}}
Expand Down Expand Up @@ -145,6 +146,7 @@ pub use initialize::*;
pub struct Initialize {}
pub fn handler(ctx: Context<Initialize>) -> Result<()> {
msg!("Greetings from: {{:?}}", ctx.program_id);
Ok(())
}
"#
Expand Down

0 comments on commit 499e1e6

Please sign in to comment.