From 5d33f2f4a4902fc3a90af869a05b1cedc03d5161 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini Date: Fri, 26 Nov 2021 10:01:14 -0300 Subject: [PATCH] remove enum name from variants --- explorer/src/logging.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/explorer/src/logging.rs b/explorer/src/logging.rs index 79ee3e2e4f..e3cd4578d5 100644 --- a/explorer/src/logging.rs +++ b/explorer/src/logging.rs @@ -166,7 +166,7 @@ impl LogSettings { .write(true) .append(true) .open(&path) - .map_err(|cause| Error::FileError { + .map_err(|cause| Error::File { path: path.clone(), cause, })?; @@ -236,7 +236,7 @@ pub enum Error { #[error("log format `{specified}` is not supported for this output")] FormatNotSupported { specified: LogFormat }, #[error("failed to open the log file `{}`", .path.to_string_lossy())] - FileError { + File { path: PathBuf, #[source] cause: io::Error, @@ -248,5 +248,5 @@ pub enum Error { #[error("GELF connection failed")] Gelf(tracing_gelf::BuilderError), #[error("failed to set global subscriber")] - SetGlobalSubscriberError(#[source] SetGlobalDefaultError), + SetGlobalSubscriber(#[source] SetGlobalDefaultError), }