Browse Source

lang: Remove mut from dispatch arg (#387)

Armani Ferrante 4 years ago
parent
commit
b3b33f63f3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lang/syn/src/codegen/program/dispatch.rs

+ 1 - 1
lang/syn/src/codegen/program/dispatch.rs

@@ -133,7 +133,7 @@ pub fn generate(program: &Program) -> proc_macro2::TokenStream {
         /// With this 8 byte identifier, Anchor performs method dispatch,
         /// matching the given 8 byte identifier to the associated method
         /// handler, which leads to user defined code being eventually invoked.
-        fn dispatch(program_id: &Pubkey, accounts: &[AccountInfo], sighash: [u8; 8], mut ix_data: &[u8]) -> ProgramResult {
+        fn dispatch(program_id: &Pubkey, accounts: &[AccountInfo], sighash: [u8; 8], ix_data: &[u8]) -> ProgramResult {
             // If the method identifier is the IDL tag, then execute an IDL
             // instruction, injected into all Anchor programs.
             if cfg!(not(feature = "no-idl")) {