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

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);
}