extruct-macros 0.2.1

Implementation detail of the `extruct` crate. Use https://crates.io/crates/extruct in your code.
Documentation
1
2
3
4
5
pub(crate) fn format_error_output(msg: &str, help: &str) -> String {
    // Shamelessly copied from
    // https://gitlab.com/CreepySkeleton/proc-macro-error/-/blob/a43601004db560a7e02ee5d45f26eda757dec259/src/diagnostic.rs#L240
    format!("{msg}\n\n  = help: {help}\n\n")
}