Skip to content

Commit c6c9c5f

Browse files
committed
version shift
1 parent 0befcca commit c6c9c5f

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

Cargo.lock

Lines changed: 17 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use chrono::{DateTime, Datelike, FixedOffset};
55
use clap::{CommandFactory, Parser};
66
use config_file::FromConfigFile;
77
use core::str;
8+
use clap::crate_authors;
89
use log::{debug, error, info, trace, warn};
910
use ocsp::common::asn1::Bytes;
1011
use ocsp::common::ocsp::{OcspExt, OcspExtI};
@@ -361,7 +362,7 @@ async fn upload(
361362
error!("Error creating OCSP response.");
362363
debug!(
363364
"Error creating OCSP response: {}",
364-
resp.unwrap_err().to_string()
365+
resp.unwrap_err()
365366
);
366367
return Ok((
367368
custom,
@@ -476,7 +477,7 @@ fn rocket() -> rocket::Rocket<rocket::Build> {
476477
let config_path = &cli.config_path;
477478

478479
if !Path::new(config_path).exists() {
479-
eprintln!("Error: Config file not found at: {}", config_path);
480+
eprintln!("Error: Config file not found at: {}", config_path.display());
480481
eprintln!("\nUsage information:");
481482
let mut cli_command = Cli::command();
482483
if let Err(err) = cli_command.print_help() {
@@ -488,7 +489,7 @@ fn rocket() -> rocket::Rocket<rocket::Build> {
488489
let config = match Fileconfig::from_config_file(config_path) {
489490
Ok(config) => config,
490491
Err(e) => {
491-
eprintln!("Error: Reading config file at {}: {}", config_path, e);
492+
eprintln!("Error: Reading config file at {}: {}", config_path.display(), e);
492493
eprintln!("\nUsage information:");
493494
let mut cli_command = Cli::command();
494495
if let Err(err) = cli_command.print_help() {

0 commit comments

Comments
 (0)