Skip to content

Commit

Permalink
remove enum name from variants
Browse files Browse the repository at this point in the history
  • Loading branch information
ecioppettini committed Nov 26, 2021
1 parent 46ed8e1 commit 5d33f2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions explorer/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})?;
Expand Down Expand Up @@ -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,
Expand All @@ -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),
}

0 comments on commit 5d33f2f

Please sign in to comment.