From 8d11eb64efa67f1d7a6902300fdffd2c7c08df6c Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Fri, 18 Jul 2025 13:22:04 +0200 Subject: Apply clippy and formatting --- src/archiver/gopher.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/archiver/gopher.rs') diff --git a/src/archiver/gopher.rs b/src/archiver/gopher.rs index 8c37022..39b54cb 100644 --- a/src/archiver/gopher.rs +++ b/src/archiver/gopher.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.gph"; @@ -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 Gopher Archive template"))?; + .ok_or_else(|| Error::other("Unable to parse Gopher Archive template"))?; let rendered_template = parsed_template.render(context)?; let location = target.join(FILENAME); write(location, rendered_template)?; -- cgit