Skip to content

Commit 8bc0e8a

Browse files
committed
Fix clippy warning
1 parent 280e979 commit 8bc0e8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssam/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ impl<F: AsRawFd> Device<F> {
136136
__pad: [0; 6],
137137
},
138138
response: uapi::RequestResponse {
139-
data: if response.is_empty() { 0 } else { response.as_ptr() as u64 },
139+
data: if response.is_empty() { 0 } else { response.as_mut_ptr() as u64 },
140140
length: response.len().min(std::u16::MAX as usize) as u16,
141141
__pad: [0; 6],
142142
},

0 commit comments

Comments
 (0)