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 fd6496d commit 49535d8Copy full SHA for 49535d8
sdk/pinocchio/src/account_info.rs
@@ -893,6 +893,7 @@ 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
897
unsafe {
898
assert_eq!((&*data_ptr.as_ptr()).len(), 1);
899
(*data_ptr.as_ptr())[0] = 1;
0 commit comments