up 0.18.1

up is a tool to help you keep your machine up to date.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Utilities for manipulating eyre errors.

use std::fmt::Debug;

/// Format an error into a nice way to show it in a log message.
/// e.g.
///
/// ```text
/// trace!("Action failed.{}", log_error(&e));
/// ```
pub fn log_error(e: &impl Debug) -> String {
    format!("\n  Error: {e:?}")
}