File tree Expand file tree Collapse file tree 4 files changed +13
-10
lines changed Expand file tree Collapse file tree 4 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -506,7 +506,7 @@ impl<'a> Submitter<'a> {
506
506
/// except that it completes synchronously.
507
507
///
508
508
/// Cancellation can target a specific request, or all requests matching some criteria. The
509
- /// [CancelBuilder](types::CancelBuilder) builder supports describing the match criteria for cancellation.
509
+ /// [` CancelBuilder`] builder supports describing the match criteria for cancellation.
510
510
///
511
511
/// An optional `timeout` can be provided to specify how long to wait for matched requests to be
512
512
/// canceled. If no timeout is provided, the default is to wait indefinitely.
@@ -540,14 +540,14 @@ impl<'a> Submitter<'a> {
540
540
let flags = builder. flags . bits ( ) ;
541
541
let fd = builder. to_fd ( ) ;
542
542
543
- let arg = {
544
- let mut arg = sys:: io_uring_sync_cancel_reg:: default ( ) ;
545
- arg. addr = user_data;
546
- arg. fd = fd;
547
- arg. flags = flags;
548
- arg. timeout = timespec;
549
- arg
543
+ let arg = sys:: io_uring_sync_cancel_reg {
544
+ addr : user_data,
545
+ fd,
546
+ flags,
547
+ timeout : timespec,
548
+ ..Default :: default ( )
550
549
} ;
550
+
551
551
execute (
552
552
self . fd . as_raw_fd ( ) ,
553
553
sys:: IORING_REGISTER_SYNC_CANCEL ,
Original file line number Diff line number Diff line change 8
8
#![ allow(
9
9
clippy:: unreadable_literal,
10
10
clippy:: missing_safety_doc,
11
- clippy:: incorrect_clone_impl_on_copy_type
11
+ clippy:: non_canonical_clone_impl
12
12
) ]
13
13
14
14
use std:: io;
Original file line number Diff line number Diff line change @@ -393,6 +393,7 @@ impl<'buf> RecvMsgOut<'buf> {
393
393
/// is the same content provided as input to the corresponding SQE
394
394
/// (only `msg_namelen` and `msg_controllen` fields are relevant).
395
395
#[ allow( clippy:: result_unit_err) ]
396
+ #[ allow( clippy:: useless_conversion) ]
396
397
pub fn parse ( buffer : & ' buf [ u8 ] , msghdr : & libc:: msghdr ) -> Result < Self , ( ) > {
397
398
let msghdr_name_len = usize:: try_from ( msghdr. msg_namelen ) . unwrap ( ) ;
398
399
let msghdr_control_len = usize:: try_from ( msghdr. msg_controllen ) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ use std::{io, ptr};
5
5
6
6
pub ( crate ) mod private {
7
7
/// Private trait that we use as a supertrait of `EntryMarker` to prevent it from being
8
- /// implemented from outside this crate: https://jack.wrenn.fyi/blog/private-trait-methods/
8
+ /// implemented from outside this crate.
9
+ ///
10
+ /// See this [blog](https://jack.wrenn.fyi/blog/private-trait-methods/) for more details.
9
11
pub trait Sealed { }
10
12
}
11
13
You can’t perform that action at this time.
0 commit comments