@@ -73,7 +73,7 @@ fn uring_register_buffer() {
7373 unsafe { io_uring_register_buffers ( uring_fd, & [ ioslice] ) . unwrap ( ) } ;
7474}
7575
76- #[ cfg_attr( target_arch = "x86_64" , allow ( clippy:: unnecessary_wraps) ) ]
76+ #[ cfg_attr( target_arch = "x86_64" , expect ( clippy:: unnecessary_wraps) ) ]
7777fn setup_ignore_enosys ( entries : u32 , flags : IoUringParamFlags ) -> Option < IoUring > {
7878 let uring = setup_io_uring ( entries, flags, 0 , 0 ) ;
7979 match uring {
@@ -98,7 +98,7 @@ fn uring_setup_instance() {
9898}
9999
100100#[ test]
101- #[ allow ( clippy:: cast_sign_loss) ]
101+ #[ expect ( clippy:: cast_sign_loss) ]
102102fn uring_single_read ( ) {
103103 let Some ( mut uring) = setup_ignore_enosys ( 8 , IoUringParamFlags :: empty ( ) ) else {
104104 return ;
@@ -130,7 +130,7 @@ fn uring_single_read() {
130130}
131131
132132#[ test]
133- #[ allow ( clippy:: cast_sign_loss) ]
133+ #[ expect ( clippy:: cast_sign_loss) ]
134134fn uring_single_write ( ) {
135135 let Some ( mut uring) = setup_ignore_enosys ( 8 , IoUringParamFlags :: empty ( ) ) else {
136136 return ;
@@ -364,7 +364,7 @@ fn uring_single_socket() {
364364
365365#[ test]
366366#[ cfg( feature = "alloc" ) ]
367- #[ allow ( clippy:: cast_sign_loss, clippy:: too_many_lines) ]
367+ #[ expect ( clippy:: cast_sign_loss, clippy:: too_many_lines) ]
368368fn uring_unix_accept_send_recv ( ) {
369369 use crate :: network:: { bind_unix, connect_unix, listen, socket} ;
370370 let Some ( mut uring) = setup_ignore_enosys ( 8 , IoUringParamFlags :: empty ( ) ) else {
@@ -491,7 +491,6 @@ fn uring_unix_accept_send_recv() {
491491
492492#[ test]
493493#[ cfg( feature = "alloc" ) ]
494- #[ allow( clippy:: cast_sign_loss, clippy:: too_many_lines) ]
495494fn uring_tcp_accept ( ) {
496495 use crate :: network:: { bind_inet, listen, socket} ;
497496 const FIFTEEN : crate :: platform:: NonNegativeI32 =
@@ -622,7 +621,7 @@ fn uring_single_timeout() {
622621}
623622
624623#[ test]
625- #[ allow ( clippy:: cast_sign_loss) ]
624+ #[ expect ( clippy:: cast_sign_loss) ]
626625fn uring_read_registered_buffers_and_fds ( ) {
627626 let mut buf1 = [ 0u8 ; 64 ] ;
628627 let buf1_addr = core:: ptr:: addr_of_mut!( buf1) ;
@@ -716,7 +715,7 @@ fn uring_read_registered_buffers_and_fds() {
716715}
717716
718717#[ test]
719- #[ allow ( clippy:: too_many_lines) ]
718+ #[ expect ( clippy:: too_many_lines) ]
720719fn uring_write_registered_buffers_and_fds ( ) {
721720 let content1 = b"Uring fixed write 1!\n " ;
722721 let mut buf1 = [ 0u8 ; 21 ] ;
0 commit comments