Skip to content

Commit

Permalink
Fixed some clippy warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
fpagliughi committed Sep 22, 2023
1 parent d05f0fe commit b2cf10c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use std::{
/// The type of data associated with a channel.
#[allow(missing_docs)]
#[repr(u32)]
#[derive(Debug, Clone, Copy, PartialEq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum ChannelType {
Voltage = ffi::iio_chan_type_IIO_VOLTAGE,
Current = ffi::iio_chan_type_IIO_CURRENT,
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ pub(crate) unsafe extern "C" fn attr_read_all_cb(
// --------------------------------------------------------------------------

/// A struct to hold version numbers
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq)]
pub struct Version {
/// The Major version number
pub major: u32,
Expand Down

0 comments on commit b2cf10c

Please sign in to comment.