Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1aebf67

Browse files
committed
clippy: allow some future lints (from clippy::nursery)
1 parent d807908 commit 1aebf67

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

‎uefi/src/proto/ata/pass_thru.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ pub struct AtaDevice<'a> {
107107
}
108108

109109
impl 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
}

‎uefi/src/proto/nvme/pass_thru.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ pub struct NvmeNamespace<'a> {
121121
}
122122

123123
impl 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
}

‎uefi/src/proto/pci/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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 {

‎uefi/src/proto/scsi/pass_thru.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ pub struct ScsiDevice<'a> {
130130
target_lun: ScsiTargetLun,
131131
}
132132
impl 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
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /