File tree Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ pub struct AtaDevice<'a> {
107107}
108108
109109impl AtaDevice < ' _ > {
110+ #[ allow( clippy:: needless_pass_by_ref_mut) ] // cast to mutable ptr
110111 const fn proto_mut ( & mut self ) -> * mut AtaPassThruProtocol {
111112 ptr:: from_ref ( self . proto ) . cast_mut ( )
112113 }
Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ pub struct NvmeNamespace<'a> {
121121}
122122
123123impl NvmeNamespace < ' _ > {
124+ #[ allow( clippy:: needless_pass_by_ref_mut) ] // cast to mutable ptr
124125 const fn proto_mut ( & mut self ) -> * mut NvmExpressPassThruProtocol {
125126 ptr:: from_ref ( self . proto ) . cast_mut ( )
126127 }
Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ mod tests {
131131 use super :: PciIoAddress ;
132132
133133 #[ test]
134+ #[ allow( clippy:: unusual_byte_groupings) ]
134135 fn test_pci_ioaddr_raw_conversion ( ) {
135136 assert_eq ! ( size_of:: <u64 >( ) , size_of:: <PciIoAddress >( ) ) ;
136137 let srcaddr = PciIoAddress {
Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ pub struct ScsiDevice<'a> {
130130 target_lun : ScsiTargetLun ,
131131}
132132impl ScsiDevice < ' _ > {
133+ #[ allow( clippy:: needless_pass_by_ref_mut) ] // cast to mutable ptr
133134 const fn proto_mut ( & mut self ) -> * mut ExtScsiPassThruProtocol {
134135 ptr:: from_ref ( self . proto ) . cast_mut ( )
135136 }
You can’t perform that action at this time.
0 commit comments