Skip to content

Commit

Permalink
fix warnings, try fix tool update
Browse files Browse the repository at this point in the history
  • Loading branch information
wasm-forge committed Jul 9, 2024
1 parent bb378fa commit faca3a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion build_tests.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

rustup target add wasm32-wasi
rustup target add wasm32-unknown-unknown

cargo install wasi2ic

cd src/tests/fs_benchmark_test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{cell::RefCell, str::FromStr};

use stable_fs::{fs::{DstBuf, FdStat, FileSystem, OpenFlags, SrcBuf, Whence}, storage::{stable::StableStorage, types::MAX_FILE_NAME}};
use stable_fs::{fs::{DstBuf, FdStat, FileSystem, OpenFlags, SrcBuf, Whence}, storage::stable::StableStorage};
use ic_stable_structures::{memory_manager::{MemoryId, MemoryManager}, DefaultMemoryImpl, Memory};


Expand Down Expand Up @@ -255,7 +255,7 @@ fn create_depth_folders(path: String, count: usize) -> String {
dir_name = format!("{}/d{}", dir_name, num);
}

fs.create_dir(root_dir, dir_name.as_str(), FdStat::default(), 0);
fs.create_dir(root_dir, dir_name.as_str(), FdStat::default(), 0).unwrap();

format!("{}/{}", path, dir_name)

Expand Down

0 comments on commit faca3a4

Please sign in to comment.