Skip to content

Commit 49535d8

Browse files
committed
Fixed clippy again
1 parent fd6496d commit 49535d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sdk/pinocchio/src/account_info.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,7 @@ mod tests {
893893

894894
// It should be sound to mutate the data through the data pointer while no other borrows exist
895895
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
896897
unsafe {
897898
assert_eq!((&*data_ptr.as_ptr()).len(), 1);
898899
(*data_ptr.as_ptr())[0] = 1;

0 commit comments

Comments
 (0)