spdlog-internal 0.2.1

Internal private common code for crate "spdlog-rs"
Documentation
//! Internal private common code for crate [`spdlog-rs`].
//!
//! `spdlog-internal` should never be used as a standalone dependency, use
//! [`spdlog-rs`] instead.
//!
//! [`spdlog-rs`]: https://crates.io/crates/spdlog-rs

// The crate is not intended to be used directly by users, all public items are considered internal
// API, so we don't care about this warning.
#![allow(clippy::impl_trait_in_params)]

pub mod pattern_parser;

#[macro_export]
macro_rules! impossible {
    ( $dbg_lit:literal, $($fmt_arg:expr),* ) => {
        panic!(
            "this should not happen, please open an issue on 'spdlog-rs' Bug Tracker\n\nsource: {}\ndebug:{}",
            format!("{}:{}", file!(), line!()),
            format!($dbg_lit, $($fmt_arg),*),
        )
    };
}