Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Use more performant copy (#16282)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmay authored Mar 31, 2021
1 parent 416312b commit ad7f8e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/bpf_loader/src/syscalls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1730,7 +1730,7 @@ fn call<'a>(
}
account_ref
.data
.clone_from_slice(&account.data()[0..account_ref.data.len()]);
.copy_from_slice(&account.data()[0..account_ref.data.len()]);
}
}
}
Expand Down

0 comments on commit ad7f8e7

Please sign in to comment.