Skip to content

Commit

Permalink
Apply clippy fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
KmolYuan committed Dec 26, 2022
1 parent c08499f commit 5bc1dd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<P, D>(path: P, dist: D) -> Result<()>
where
Expand Down Expand Up @@ -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('.') {
Expand Down

0 comments on commit 5bc1dd8

Please sign in to comment.