Skip to content

Commit ee25028

Browse files
committed
Migrate plist bitflag types to the new bitflags
1 parent 195dfa8 commit ee25028

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

src/hl/plist/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ bitflags! {
3737
/// the object creation property list. HDF5 currently provides no mechanism to turn
3838
/// on attribute creation order tracking at object creation time and to build the
3939
/// index later.
40-
#[derive(Default)]
40+
#[derive(Clone, Copy, Debug, PartialEq, Eq, Default)]
4141
pub struct AttrCreationOrder: u32 {
4242
/// Attribute creation order is tracked but not necessarily indexed.
4343
const TRACKED = H5P_CRT_ORDER_TRACKED as _;

src/hl/plist/dataset_create.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ impl From<Layout> for H5D_layout_t {
148148

149149
#[cfg(feature = "1.10.0")]
150150
bitflags! {
151+
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
151152
pub struct ChunkOpts: u32 {
152153
const DONT_FILTER_PARTIAL_CHUNKS = H5D_CHUNK_DONT_FILTER_PARTIAL_CHUNKS;
153154
}

src/hl/plist/file_access.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ impl Default for FamilyDriver {
195195
}
196196

197197
bitflags! {
198+
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
198199
pub struct LogFlags: u64 {
199200
const TRUNCATE = H5FD_LOG_TRUNCATE;
200201
const META_IO = H5FD_LOG_META_IO;

src/hl/plist/file_create.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ pub struct PhaseChangeInfo {
155155

156156
bitflags! {
157157
/// Types of messages that can be stored in a shared message index.
158+
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
158159
pub struct SharedMessageType: u32 {
159160
/// No shared messages.
160161
const NONE = H5O_SHMESG_NONE_FLAG;

0 commit comments

Comments
 (0)