aboutsummaryrefslogtreecommitdiff
path: root/src/archiver/gemini.rs
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-07-18 13:22:04 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-07-18 13:22:04 +0200
commit8d11eb64efa67f1d7a6902300fdffd2c7c08df6c (patch)
tree119de904ee30468726d7f58680e1ba47c5dd267e /src/archiver/gemini.rs
parent5d8b65a9a5742e5db705cf4c8164138eca20c355 (diff)
Apply clippy and formatting
Diffstat (limited to 'src/archiver/gemini.rs')
-rw-r--r--src/archiver/gemini.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/archiver/gemini.rs b/src/archiver/gemini.rs
index f4df9f8..edc6219 100644
--- a/src/archiver/gemini.rs
+++ b/src/archiver/gemini.rs
@@ -1,6 +1,6 @@
use crate::template::{Context, find, parse};
use std::fs::write;
-use std::io::{Error, ErrorKind::Other, Result};
+use std::io::{Error, Result};
use std::path::Path;
const FILENAME: &str = "index.gmi";
@@ -13,7 +13,7 @@ pub fn archive(
) -> Result<()> {
if let Some(template) = find(template_directory, FILENAME) {
let parsed_template = parse(&template)
- .ok_or_else(|| Error::new(Other, "Unable to parse Gemini Archive template"))?;
+ .ok_or_else(|| Error::other("Unable to parse Gemini Archive template"))?;
let rendered_template = parsed_template.render(context)?;
let location = target.join(FILENAME);
write(location, rendered_template)?;