Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonInTheDark committed Aug 30, 2024
1 parent 1d6ce51 commit 77554cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions hypnagogic_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,7 @@ fn process_icon(
match err {
ConfigError::Template(template_err) => {
match template_err {
TemplateError::NoTemplateDir(dir_path) => {
Error::NoTemplateFolder(dir_path)
}
TemplateError::NoTemplateDir(dir_path) => Error::NoTemplateFolder(dir_path),
TemplateError::FailedToFindTemplate(template_string, expected_path) => {
Error::TemplateNotFound {
source_config,
Expand Down
4 changes: 2 additions & 2 deletions hypnagogic_core/src/config/template_resolver/file_resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ impl FileResolver {
/// # Errors
/// Returns an error if `path` does not exist.
pub fn new(path: &Path) -> Result<Self, TemplateError> {
let pathbuf =
fs::canonicalize(path).map_err(|_e| TemplateError::NoTemplateDir(path.to_path_buf()))?;
let pathbuf = fs::canonicalize(path)
.map_err(|_e| TemplateError::NoTemplateDir(path.to_path_buf()))?;
Ok(FileResolver { path: pathbuf })
}
}
Expand Down

0 comments on commit 77554cb

Please sign in to comment.