diff --git a/src/lib.rs b/src/lib.rs index 31eb208..fd860cf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -31,7 +31,7 @@ pub use { }; /// Creates a haggis archive from a list of files -pub fn create_archive(path: &str, files: Vec<&str>, algorithm: Algorithm) -> Result<(), Error> { +pub fn create_archive(path: &str, files: Vec, algorithm: Algorithm) -> Result<(), Error> { let fd = fs::OpenOptions::new() .create(true) .truncate(true) @@ -44,7 +44,7 @@ pub fn create_archive(path: &str, files: Vec<&str>, algorithm: Algorithm) -> Res /// Streams a haggis archive over something which implements `Write` pub fn stream_archive( mut writer: W, - files: Vec<&str>, + files: Vec, algorithm: Algorithm, ) -> Result<(), Error> { let links = Mutex::new(HashMap::new()); @@ -69,7 +69,7 @@ pub enum Message { #[cfg(feature = "parallel")] pub fn par_create_archive( path: &str, - files: Vec<&str>, + files: Vec, algorithm: Algorithm, sender: &Sender, ) -> Result<(), Error> { @@ -83,7 +83,7 @@ pub fn par_create_archive( #[cfg(feature = "parallel")] pub fn par_stream_archive( writer: W, - files: Vec<&str>, + files: Vec, algorithm: Algorithm, sender: &Sender, ) -> Result<(), Error> {