Skip to content

Commit

Permalink
Fixed Clippy lints: added derive(Eq) to OscMidiMessage and OscColor, …
Browse files Browse the repository at this point in the history
…which could get it for free in addition to PartialEq.
  • Loading branch information
maxnoel committed Dec 31, 2022
1 parent e0eab86 commit 2d3049e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ impl<'a> From<&'a str> for OscType {
}
/// Represents the parts of a Midi message. Mainly used for
/// tunneling midi over a network using the OSC protocol.
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct OscMidiMessage {
pub port: u8,
pub status: u8,
Expand Down Expand Up @@ -268,7 +268,7 @@ pub struct OscBundle {
}

/// An RGBA color.
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct OscColor {
pub red: u8,
pub green: u8,
Expand Down

0 comments on commit 2d3049e

Please sign in to comment.