Update to bugreport 0.3.0

This commit is contained in:
sharkdp 2021-01-06 22:20:47 +01:00 committed by David Peter
parent 60406c7c2d
commit 6a52f69b58
3 changed files with 6 additions and 4 deletions

4
Cargo.lock generated
View File

@ -196,7 +196,9 @@ dependencies = [
[[package]]
name = "bugreport"
version = "0.1.0"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "116762017f173ea5d8103e75533f6bdb62cb6f2257c9c95672beb085a70daed8"
dependencies = [
"snailquote",
"sys-info",

View File

@ -51,7 +51,7 @@ serde_yaml = "0.8"
semver = "0.11"
path_abs = { version = "0.5", default-features = false }
clircle = "0.2.0"
bugreport = "0.2.1"
bugreport = "0.3"
[dependencies.git2]
version = "0.13"

View File

@ -228,7 +228,7 @@ fn run() -> Result<bool> {
let app = App::new()?;
if app.matches.is_present("diagnostic") {
use bugreport::{bugreport, collectors::*};
use bugreport::{bugreport, collector::*, format::Markdown};
bugreport!()
.info(SoftwareVersion::default())
@ -252,7 +252,7 @@ fn run() -> Result<bool> {
.info(FileContent::new("Config file", config_file()))
.info(CompileTimeInformation::default())
.info(CommandOutput::new("Less version", "less", &["--version"]))
.print_markdown();
.print::<Markdown>();
return Ok(true);
}