We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49535d8 commit 9ee4a3fCopy full SHA for 9ee4a3f
sdk/pinocchio/src/account_info.rs
@@ -893,7 +893,8 @@ mod tests {
893
894
// It should be sound to mutate the data through the data pointer while no other borrows exist
895
let data_ptr = account_info.data_ptr();
896
- #[allow(clippy::needless_borrow)] // This is opposite in nightly clippy, it's an error to not have the ref
+ // This is opposite in nightly clippy, it's an error to not have the ref
897
+ #[allow(clippy::needless_borrow)]
898
unsafe {
899
assert_eq!((&*data_ptr.as_ptr()).len(), 1);
900
(*data_ptr.as_ptr())[0] = 1;
0 commit comments