diff --git a/hypnagogic_cli/src/main.rs b/hypnagogic_cli/src/main.rs index a14a1f3..264da63 100644 --- a/hypnagogic_cli/src/main.rs +++ b/hypnagogic_cli/src/main.rs @@ -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, diff --git a/hypnagogic_core/src/config/template_resolver/file_resolver.rs b/hypnagogic_core/src/config/template_resolver/file_resolver.rs index 6f3dcf9..332ce47 100644 --- a/hypnagogic_core/src/config/template_resolver/file_resolver.rs +++ b/hypnagogic_core/src/config/template_resolver/file_resolver.rs @@ -20,8 +20,8 @@ impl FileResolver { /// # Errors /// Returns an error if `path` does not exist. pub fn new(path: &Path) -> Result { - 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 }) } }