Skip to content

Commit 76eb6b9

Browse files
committed
Don't use patch version
1 parent ceb199a commit 76eb6b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fitsio-sys/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ pub use sys::*;
103103

104104
/// Representation of the version of cfitsio used within bindings
105105
pub struct CfitsioVersion {
106-
/// Patch version
107-
pub patch: u32,
108106
/// Minor version
109107
pub minor: u32,
110108
/// Major version
@@ -113,13 +111,15 @@ pub struct CfitsioVersion {
113111

114112
impl std::fmt::Display for CfitsioVersion {
115113
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
116-
write!(f, "{}.{}.{}", self.major, self.minor, self.patch)
114+
write!(f, "{}.{}", self.major, self.minor)
117115
}
118116
}
119117

120118
pub fn cfitsio_version() -> CfitsioVersion {
121119
CfitsioVersion {
122-
patch: CFITSIO_MICRO,
120+
// TODO: we need to detect the version of cfitsio we are binding to. Version >=4 supports
121+
// this field, but earlier versions don't.
122+
// patch: CFITSIO_MICRO,
123123
minor: CFITSIO_MINOR,
124124
major: CFITSIO_MAJOR,
125125
}

0 commit comments

Comments
 (0)