Skip to content

Commit

Permalink
Fix redundant error name
Browse files Browse the repository at this point in the history
  • Loading branch information
SRv6d committed Oct 25, 2024
1 parent bf565a9 commit 0125165
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,14 @@ pub enum Error {
#[error("{0}")]
Io(#[from] io::Error),
#[error("{0}")]
SyntaxError(figment::Error),
Syntax(figment::Error),
#[error("missing sources {0}")]
MissingSources(#[from] MissingSourcesError),
}

impl From<figment::Error> for Error {
fn from(error: figment::Error) -> Self {
Error::SyntaxError(error)
Error::Syntax(error)
}
}

Expand Down

0 comments on commit 0125165

Please sign in to comment.