mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-05 02:20:19 +00:00
fix clippy warning
This commit is contained in:
parent
abed2c238a
commit
c4fd02aec7
@ -1979,9 +1979,9 @@ pub fn path_remove_directory(
|
|||||||
|
|
||||||
let host_path_to_remove = match &state.fs.inodes[inode].kind {
|
let host_path_to_remove = match &state.fs.inodes[inode].kind {
|
||||||
Kind::Dir { entries, path, .. } => {
|
Kind::Dir { entries, path, .. } => {
|
||||||
if !entries.is_empty() {
|
if !entries.is_empty()
|
||||||
return __WASI_ENOTEMPTY;
|
|| wasi_try!(std::fs::read_dir(path).ok(), __WASI_EIO).count() != 0
|
||||||
} else if wasi_try!(std::fs::read_dir(path).ok(), __WASI_EIO).count() != 0 {
|
{
|
||||||
return __WASI_ENOTEMPTY;
|
return __WASI_ENOTEMPTY;
|
||||||
}
|
}
|
||||||
path.clone()
|
path.clone()
|
||||||
|
Loading…
Reference in New Issue
Block a user