Skip to content

Commit 6bc8661

Browse files
committed
multiboot2-header: fix clippy
1 parent c2039c8 commit 6bc8661

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

multiboot2-header/src/builder/information_request.rs

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ impl InformationRequestHeaderTagBuilder {
7474

7575
for tag in &self.irs {
7676
let bytes: [u8; 4] = (*tag as u32).to_ne_bytes();
77+
#[allow(clippy::needless_borrow)] // required because of MSRV
7778
data.extend(&bytes);
7879
}
7980

multiboot2-header/src/tags.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub enum HeaderTagISA {
1919
/// from the example C code at the bottom of the Multiboot2 specification. This value
2020
/// stands in the `typ` property of [`crate::tags::HeaderTag`].
2121
#[repr(u16)]
22-
#[derive(Copy, Clone, Debug, PartialEq)]
22+
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
2323
pub enum HeaderTagType {
2424
/// Type for [`crate::EndHeaderTag`].
2525
End = 0,
@@ -54,7 +54,7 @@ impl HeaderTagType {
5454

5555
/// Flags for Multiboot2 header tags.
5656
#[repr(u16)]
57-
#[derive(Copy, Clone, Debug, PartialEq)]
57+
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
5858
pub enum HeaderTagFlag {
5959
Required = 0,
6060
Optional = 1,

0 commit comments

Comments
 (0)