@@ -9,7 +9,7 @@ use std::fmt::{self, Debug};
99use std:: ops:: Deref ;
1010
1111use hdf5_sys:: h5p:: { H5Pcreate , H5Pget_chunk_cache , H5Pset_chunk_cache } ;
12- #[ cfg( all( feature = "1.10.0" , have_parallel ) ) ]
12+ #[ cfg( all( feature = "1.10.0" , feature = "have-parallel" ) ) ]
1313use hdf5_sys:: h5p:: { H5Pget_all_coll_metadata_ops , H5Pset_all_coll_metadata_ops } ;
1414#[ cfg( feature = "1.8.17" ) ]
1515use hdf5_sys:: h5p:: { H5Pget_efile_prefix , H5Pset_efile_prefix } ;
@@ -62,7 +62,7 @@ impl Debug for DatasetAccess {
6262 formatter. field ( "virtual_view" , & self . virtual_view ( ) ) ;
6363 formatter. field ( "virtual_printf_gap" , & self . virtual_printf_gap ( ) ) ;
6464 }
65- #[ cfg( all( feature = "1.10.0" , have_parallel ) ) ]
65+ #[ cfg( all( feature = "1.10.0" , feature = "have-parallel" ) ) ]
6666 formatter. field ( "all_coll_metadata_ops" , & self . all_coll_metadata_ops ( ) ) ;
6767 formatter. finish ( )
6868 }
@@ -134,7 +134,7 @@ pub struct DatasetAccessBuilder {
134134 virtual_view : Option < VirtualView > ,
135135 #[ cfg( feature = "1.10.0" ) ]
136136 virtual_printf_gap : Option < usize > ,
137- #[ cfg( all( feature = "1.10.0" , have_parallel ) ) ]
137+ #[ cfg( all( feature = "1.10.0" , feature = "have-parallel" ) ) ]
138138 all_coll_metadata_ops : Option < bool > ,
139139}
140140
@@ -159,7 +159,7 @@ impl DatasetAccessBuilder {
159159 builder. virtual_view ( plist. get_virtual_view ( ) ?) ;
160160 builder. virtual_printf_gap ( plist. get_virtual_printf_gap ( ) ?) ;
161161 }
162- #[ cfg( all( feature = "1.10.0" , have_parallel ) ) ]
162+ #[ cfg( all( feature = "1.10.0" , feature = "have-parallel" ) ) ]
163163 builder. all_coll_metadata_ops ( plist. get_all_coll_metadata_ops ( ) ?) ;
164164 Ok ( builder)
165165 }
@@ -187,7 +187,7 @@ impl DatasetAccessBuilder {
187187 self
188188 }
189189
190- #[ cfg( all( feature = "1.10.0" , have_parallel ) ) ]
190+ #[ cfg( all( feature = "1.10.0" , feature = "have-parallel" ) ) ]
191191 pub fn all_coll_metadata_ops ( & mut self , is_collective : bool ) -> & mut Self {
192192 self . all_coll_metadata_ops = Some ( is_collective) ;
193193 self
@@ -213,7 +213,7 @@ impl DatasetAccessBuilder {
213213 h5try ! ( H5Pset_virtual_printf_gap ( id, v as _) ) ;
214214 }
215215 }
216- #[ cfg( all( feature = "1.10.0" , have_parallel ) ) ]
216+ #[ cfg( all( feature = "1.10.0" , feature = "have-parallel" ) ) ]
217217 {
218218 if let Some ( v) = self . all_coll_metadata_ops {
219219 h5try ! ( H5Pset_all_coll_metadata_ops ( id, v as _) ) ;
@@ -296,13 +296,13 @@ impl DatasetAccess {
296296 self . get_virtual_printf_gap ( ) . unwrap_or ( 0 )
297297 }
298298
299- #[ cfg( all( feature = "1.10.0" , have_parallel ) ) ]
299+ #[ cfg( all( feature = "1.10.0" , feature = "have-parallel" ) ) ]
300300 #[ doc( hidden) ]
301301 pub fn get_all_coll_metadata_ops ( & self ) -> Result < bool > {
302302 h5get ! ( H5Pget_all_coll_metadata_ops ( self . id( ) ) : hbool_t) . map ( |x| x > 0 )
303303 }
304304
305- #[ cfg( all( feature = "1.10.0" , have_parallel ) ) ]
305+ #[ cfg( all( feature = "1.10.0" , feature = "have-parallel" ) ) ]
306306 pub fn all_coll_metadata_ops ( & self ) -> bool {
307307 self . get_all_coll_metadata_ops ( ) . unwrap_or ( false )
308308 }
0 commit comments