qubit-error 0.2.4

Shared error handling helpers for Rust applications
Documentation
/*******************************************************************************
 *
 *    Copyright (c) 2025 - 2026 Haixing Hu.
 *
 *    SPDX-License-Identifier: Apache-2.0
 *
 *    Licensed under the Apache License, Version 2.0.
 *
 ******************************************************************************/
use std::io;

use qubit_error::error::{
    BoxError,
    IntoBoxError,
};

fn convert_error() -> BoxError {
    io::Error::other("converted error").into_box_error()
}

#[test]
fn test_into_box_error_boxes_standard_error() {
    let error = convert_error();

    assert_eq!(error.to_string(), "converted error");
}