Skip to content

Commit c67069a

Browse files
committed
multiboot2: latest cargo clippy improvements
1 parent 4885ccb commit c67069a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

multiboot2/src/framebuffer.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::Reader;
33
use core::slice;
44

55
/// The VBE Framebuffer information Tag.
6-
#[derive(Debug, PartialEq)]
6+
#[derive(Debug, PartialEq, Eq)]
77
pub struct FramebufferTag<'a> {
88
/// Contains framebuffer physical address.
99
///
@@ -29,7 +29,7 @@ pub struct FramebufferTag<'a> {
2929
}
3030

3131
/// The type of framebuffer.
32-
#[derive(Debug, PartialEq)]
32+
#[derive(Debug, PartialEq, Eq)]
3333
pub enum FramebufferType<'a> {
3434
/// Indexed color.
3535
Indexed {
@@ -55,7 +55,7 @@ pub enum FramebufferType<'a> {
5555
}
5656

5757
/// An RGB color type field.
58-
#[derive(Debug, PartialEq)]
58+
#[derive(Debug, PartialEq, Eq)]
5959
pub struct FramebufferField {
6060
/// Color field position.
6161
pub position: u8,
@@ -65,7 +65,7 @@ pub struct FramebufferField {
6565
}
6666

6767
/// A framebuffer color descriptor in the palette.
68-
#[derive(Clone, Copy, Debug, PartialEq)]
68+
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
6969
#[repr(C, packed)] // only repr(C) would add unwanted padding at the end
7070
pub struct FramebufferColor {
7171
/// The Red component of the color.

multiboot2/src/vbe_info.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ impl fmt::Debug for VBEModeInfo {
234234
/// A VBE colour field.
235235
///
236236
/// Descirbes the size and position of some colour capability.
237-
#[derive(Debug, PartialEq, Copy, Clone)]
237+
#[derive(Debug, PartialEq, Eq, Copy, Clone)]
238238
#[repr(C, packed)]
239239
pub struct VBEField {
240240
/// The size, in bits, of the color components of a direct color pixel.
@@ -327,7 +327,7 @@ bitflags! {
327327
}
328328

329329
/// The MemoryModel field specifies the general type of memory organization used in modes.
330-
#[derive(Debug, PartialEq, Copy, Clone)]
330+
#[derive(Debug, PartialEq, Eq, Copy, Clone)]
331331
#[repr(u8)]
332332
#[allow(missing_docs)]
333333
pub enum VBEMemoryModel {

0 commit comments

Comments
 (0)