Skip to content

Commit

Permalink
clippy: rename FileError to File
Browse files Browse the repository at this point in the history
  • Loading branch information
ecioppettini committed Sep 13, 2021
1 parent 301874b commit a9ef078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions explorer/src/logging.rs
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 Down

0 comments on commit a9ef078

Please sign in to comment.