From 6a52f69b5816819ae3d44f231e236e6249c4eff7 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Wed, 6 Jan 2021 22:20:47 +0100 Subject: [PATCH] Update to bugreport 0.3.0 --- Cargo.lock | 4 +++- Cargo.toml | 2 +- src/bin/bat/main.rs | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 48f16bbd..ced057ca 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/Cargo.toml b/Cargo.toml index 892475fc..18216303 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/bin/bat/main.rs b/src/bin/bat/main.rs index bdde0fa2..e2862fe9 100644 --- a/src/bin/bat/main.rs +++ b/src/bin/bat/main.rs @@ -228,7 +228,7 @@ fn run() -> Result { 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 { .info(FileContent::new("Config file", config_file())) .info(CompileTimeInformation::default()) .info(CommandOutput::new("Less version", "less", &["--version"])) - .print_markdown(); + .print::(); return Ok(true); }