Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sifnoc committed Dec 19, 2024
1 parent 4faeefb commit 9cbce44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cli/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ pub fn build_project(
.default(true)
.interact()?;

const WASM_TEMPLATE_DIR: Dir = include_dir!("$CARGO_MANIFEST_DIR/src/template/mopro-wasm-lib");
const WASM_TEMPLATE_DIR: Dir =
include_dir!("$CARGO_MANIFEST_DIR/src/template/mopro-wasm-lib");
let cwd = std::env::current_dir().unwrap();
copy_embedded_dir(&WASM_TEMPLATE_DIR, &cwd.join("mopro-wasm-lib"))?;

Expand Down
6 changes: 5 additions & 1 deletion cli/src/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ pub fn init_project(
Ok(())
}

pub fn copy_embedded_dir(dir: &Dir, output_dir: &Path, selection: Vec<usize>) -> anyhow::Result<()> {
pub fn copy_embedded_dir(
dir: &Dir,
output_dir: &Path,
selection: Vec<usize>,
) -> anyhow::Result<()> {
for file in dir.entries() {
let relative_path = file.path();
let output_path = output_dir.join(relative_path);
Expand Down

0 comments on commit 9cbce44

Please sign in to comment.