Skip to content

Commit a9693b9

Browse files
authored
inline Entry::clone (#265)
1 parent 8910e9a commit a9693b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/squeue.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ impl EntryMarker for Entry {
321321
}
322322

323323
impl Clone for Entry {
324+
#[inline(always)]
324325
fn clone(&self) -> Entry {
325326
// io_uring_sqe doesn't implement Clone due to the 'cmd' incomplete array field.
326327
Entry(unsafe { mem::transmute_copy(&self.0) })

0 commit comments

Comments
 (0)