cli: Fix unused variable warning on new projects (#2930)
This commit is contained in:
parent
81c8c556e8
commit
499e1e67c6
|
@ -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(())
|
||||
}
|
||||
"#
|
||||
|
|
Loading…
Reference in New Issue