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/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/archiver/mod.rs') diff --git a/src/archiver/mod.rs b/src/archiver/mod.rs index db3a841..a0655a4 100644 --- a/src/archiver/mod.rs +++ b/src/archiver/mod.rs @@ -5,7 +5,7 @@ mod raw; use crate::template::{Context, Value}; use std::collections::HashMap; use std::fs::read_dir; -use std::io::{Error, ErrorKind, Result}; +use std::io::{Error, Result}; use std::path::{Path, PathBuf}; use time::{OffsetDateTime, format_description::FormatItem, macros::format_description}; @@ -30,7 +30,7 @@ impl ArchiveEntry { let archive_length: u64 = archive_entries .len() .try_into() - .map_err(|_| Error::new(ErrorKind::Other, "Too many items in the archive."))?; + .map_err(|_| Error::other("Too many items in the archive."))?; context.insert( "archive_length".to_string(), Value::Unsigned(archive_length), -- cgit