open_dir can never create a dir

This commit is contained in:
Pat Hickey
2020-12-15 16:44:03 -08:00
parent 04805fcc5f
commit b5852bf5ff
3 changed files with 26 additions and 24 deletions

View File

@@ -82,7 +82,7 @@ impl<'a> WasiSnapshotPreview1 for WasiCtx {
return Err(Error::Notsup);
}
}
self.remove_entry(fd)?;
let _ = self.remove_entry(fd)?;
Ok(())
}