cli: Fix unused variable warning on new projects (#2930)

This commit is contained in:
Mike MacCana 2024-04-27 12:03:21 -04:00 committed by GitHub
parent 81c8c556e8
commit 499e1e67c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@ pub mod {} {{
use super::*;
pub fn initialize(ctx: Context<Initialize>) -> Result<()> {{
msg!("Greetings from: {{:?}}", ctx.program_id);
Ok(())
}}
}}
@ -145,6 +146,7 @@ pub use initialize::*;
pub struct Initialize {}
pub fn handler(ctx: Context<Initialize>) -> Result<()> {
msg!("Greetings from: {{:?}}", ctx.program_id);
Ok(())
}
"#