Skip to content

Commit f8d20db

Browse files
committed
♻️ Getting rid of unnecessary clone
1 parent 1d21cbe commit f8d20db

File tree

1 file changed

+2
-2
lines changed
  • crates/programs/world/src

1 file changed

+2
-2
lines changed

crates/programs/world/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ pub mod world {
285285
AccountMeta::new_readonly(ctx.accounts.system_program.key(), false),
286286
];
287287

288-
let data = discriminator.to_vec();
288+
let data = discriminator;
289289

290290
let ix = Instruction {
291291
program_id: ctx.accounts.component_program.key(),
@@ -324,7 +324,7 @@ pub mod world {
324324
AccountMeta::new_readonly(ctx.accounts.system_program.key(), false),
325325
];
326326

327-
let data = discriminator.to_vec();
327+
let data = discriminator;
328328

329329
let ix = Instruction {
330330
program_id: ctx.accounts.component_program.key(),

0 commit comments

Comments
 (0)