diff --git a/src/pack.rs b/src/pack.rs index a6b4c26..a9a797e 100644 --- a/src/pack.rs +++ b/src/pack.rs @@ -2,12 +2,12 @@ use crate::{ project::load, update::{archive, update}, }; +use binstall_zip::ZipArchive; use std::{ fs, io::Result, path::{Path, PathBuf}, }; -use binstall_zip::ZipArchive; fn copy_dir(path: P, dist: D) -> Result<()> where @@ -87,7 +87,7 @@ where fn pack_inner(project: &str) -> Result<()> { let archive = Path::new(archive!()); let contents = load(&fs::read_to_string(project)?, "", false)?; - fs::write(archive.join("index.html"), &contents)?; + fs::write(archive.join("index.html"), contents)?; for assets in listdir(".")? { let name = assets.file_name().unwrap().to_str().unwrap(); if name == archive!() || name.starts_with('.') {