/// Show full cause chain in a single line
Show full cause chain in a single line
Show full cause chain in a single line
pub(crate) fn error_display_chain(error: &dyn std::error::Error) -> String {
    let mut s = error.to_string();
    if let Some(source) = error.source() {
        s.push_str(" -> ");
        s.push_str(&error_display_chain(source));
    }
    s
}
pub ( crate ) fn error_display_chain ( error : & dyn std :: error :: Error ) -> String { let mut s = error . to_string ( ) ; if let Some ( source ) = error . source ( ) { s . push_str ( " " ) ; s . push_str ( & error_display_chain ( source ) ) ; } s }
Show full cause chain in a single line
Show full cause chain in a single line
error
&dyn std::error::Error