Skip to content

Commit 72bc752

Browse files
committed
fix: clippy lint for deriving eq
We can do this since we don't have any non-eq types, and clippy is telling us to do so
1 parent a38123c commit 72bc752

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
1010
* Support for boolean header card values
1111

1212
### Changed
13+
14+
* Some more types are deriving `Eq` thanks to a clippy lint
15+
1316
### Removed
1417

1518
## [0.20.0]

fitsio/src/hdu.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use std::ffi;
1414
use std::ops::Range;
1515

1616
/// Struct representing a FITS HDU
17-
#[derive(Debug, PartialEq)]
17+
#[derive(Debug, PartialEq, Eq)]
1818
pub struct FitsHdu {
1919
/// Information about the current HDU
2020
pub info: HduInfo,
@@ -1031,7 +1031,7 @@ Otherwise the variant is `HduInfo::TableInfo`.
10311031
[fetch-hdu-info]: ../fitsfile/struct.FitsFile.html#method.fetch_hdu_info
10321032
*/
10331033
#[allow(missing_docs)]
1034-
#[derive(Debug, PartialEq)]
1034+
#[derive(Debug, PartialEq, Eq)]
10351035
pub enum HduInfo {
10361036
ImageInfo {
10371037
shape: Vec<usize>,

fitsio/src/tables.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ pub struct ColumnDescription {
420420
}
421421

422422
/// Concrete representation of the description of a column
423-
#[derive(Debug, Clone, PartialEq)]
423+
#[derive(Debug, Clone, PartialEq, Eq)]
424424
pub struct ConcreteColumnDescription {
425425
/// Name of the column
426426
pub name: String,

0 commit comments

Comments
 (0)