wasi-common: fix some warnings

This commit is contained in:
Pat Hickey
2020-08-18 10:45:42 -07:00
parent 8d39d9b1b5
commit 0e1c534e07

View File

@@ -345,10 +345,10 @@ impl Handle for InMemoryFile {
fn openat( fn openat(
&self, &self,
path: &str, path: &str,
read: bool, _read: bool,
write: bool, _write: bool,
oflags: types::Oflags, oflags: types::Oflags,
fd_flags: types::Fdflags, _fd_flags: types::Fdflags,
) -> Result<Box<dyn Handle>> { ) -> Result<Box<dyn Handle>> {
if oflags.contains(&types::Oflags::DIRECTORY) { if oflags.contains(&types::Oflags::DIRECTORY) {
tracing::trace!( tracing::trace!(
@@ -633,8 +633,8 @@ impl Handle for VirtualDir {
fn openat( fn openat(
&self, &self,
path: &str, path: &str,
read: bool, _read: bool,
write: bool, _write: bool,
oflags: types::Oflags, oflags: types::Oflags,
fd_flags: types::Fdflags, fd_flags: types::Fdflags,
) -> Result<Box<dyn Handle>> { ) -> Result<Box<dyn Handle>> {