pub fn format_error(
    working_set: &StateWorkingSet<'_>,
    error: &(dyn Diagnostic + Send + Sync + 'static)
) -> String