libvctrl_handler 1.0.2

Fundamental contracts for building a version control system – no implementations, only traits and types
Documentation
//! Convenience macros for working with errors and other common patterns.

/// Convenience macro to create a [`crate::VctrlError::Other`] with a formatted message.
///
/// This macro accepts a **format string literal** and arguments, just like `format!`.
/// It does **not** accept an already‑computed `String`; use `VctrlError::Other(…)`
/// directly for that case.
///
/// # Example
/// ```rust
/// # use libvctrl_handler::*;
/// let err = vctrl_error_other!("something went wrong: {}", 42);
/// assert_eq!(err.to_string(), "something went wrong: 42");
/// ```
#[macro_export]
macro_rules! vctrl_error_other {
    ($($arg:tt)*) => {
        $crate::VctrlError::Other(format!($($arg)*))
    };
}