message: (Minor code cleanup)
diff: @@ -142,13 +142,12 @@ impl ErrorStack {
  match closure(*err_desc) {
  Ok(frame) => {
  data.stack.push(frame);
  - 0
  }
  Err(err) => {
  data.err = Some(err);
  - 0
  }
  }
  + 0
  }
  }
  @@ -221,7 +220,7 @@ pub enum Error {
  /// An error occurred in the C API of the HDF5 library. Full error stack is captured.
  HDF5(ErrorStack),
  /// A user error occurred in the high-level Rust API (e.g., invalid user input).
  - Internal(String), // TODO: add error kinds etc, handle errors properly
  + Internal(String),
  }
  /// A type for results generated by HDF5-related functions where the `Err` type is
  