Skip to content

Commit 082557a

Browse files
committed
Add error silencing to the readme example
1 parent 4d6ea07 commit 082557a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ fn main() -> hdf5::Result<()> {
3939
use self::Color::*;
4040
use ndarray::{arr1, arr2};
4141

42+
// so that libhdf5 doesn't print errors to stdout
43+
let _ = hdf5::silence_errors();
44+
4245
{
4346
// write
4447
let file = hdf5::File::open("pixels.h5", "w")?;

0 commit comments

Comments
 (0)