From f02a44964a2fdb91d62dee9c55f6d03648f985cb Mon Sep 17 00:00:00 2001 From: Igor Tolmachov Date: Tue, 29 Aug 2023 20:24:44 +0900 Subject: Add zip stubs --- src/archive.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/archive.rs') diff --git a/src/archive.rs b/src/archive.rs index a1fe344..3c2106a 100644 --- a/src/archive.rs +++ b/src/archive.rs @@ -1,14 +1,14 @@ -use crate::result::ArchiveResult; -use std::{fs::File, path::Path}; - use crate::io::{ArchiveRead, ArchiveWrite}; +use crate::result::ArchiveResult; +use std::fs::File; +use std::path::Path; pub struct Archive { io: IO, } impl Archive { - pub fn open(path: impl AsRef) -> ArchiveResult + pub fn file_reader(path: impl AsRef) -> ArchiveResult where IO: ArchiveRead, { @@ -23,7 +23,7 @@ impl Archive { } impl Archive { - pub fn create(path: impl AsRef) -> ArchiveResult + pub fn file_writer(path: impl AsRef) -> ArchiveResult where IO: ArchiveWrite, { -- cgit v1.2.3