Use more performant copy (#16282) (#16284)

(cherry picked from commit ad7f8e7f23)

Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
mergify[bot]
2021-04-01 01:08:01 +00:00
committed by GitHub
parent e87c3421bc
commit 68ad2dcce1

View File

@ -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()]);
}
}
}