//! Source code formatting for generated Rust code.
//!
//! Uses `syn` to parse the token stream and `prettyplease` to pretty-print it.
//! This ensures that all generated files are human-readable and consistently
//! formatted.
/// Format a token stream into a pretty-printed Rust source string.
///
/// # Panics
///
/// Panics if the generated token stream is not valid Rust syntax, which
/// indicates a bug in the code generator.
// Clone needed for error fallback