Skip to content

Commit

Permalink
refactor(preview2): disallow unused variables module-wide
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
  • Loading branch information
rvolosatovs committed May 25, 2023
1 parent 09dd68c commit 6e58532
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions crates/wasi/src/preview2/preview1/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Temporary for scaffolding this module out:
#![allow(unused_variables)]

use crate::preview2::filesystem::TableFsExt;
use crate::preview2::preview2::filesystem::TableReaddirExt;
use crate::preview2::{wasi, TableError, WasiView};
Expand Down Expand Up @@ -964,8 +961,8 @@ impl<
async fn fd_fdstat_set_rights(
&mut self,
fd: types::Fd,
fs_rights_base: types::Rights,
fs_rights_inheriting: types::Rights,
_fs_rights_base: types::Rights,
_fs_rights_inheriting: types::Rights,
) -> Result<(), types::Error> {
self.get_fd(fd).await?;
Ok(())
Expand Down Expand Up @@ -1768,6 +1765,7 @@ impl<
})
}

#[allow(unused_variables)]
#[instrument(skip(self))]
async fn poll_oneoff<'a>(
&mut self,
Expand Down Expand Up @@ -1816,6 +1814,7 @@ impl<
Ok(())
}

#[allow(unused_variables)]
#[instrument(skip(self))]
async fn sock_accept(
&mut self,
Expand All @@ -1825,6 +1824,7 @@ impl<
todo!()
}

#[allow(unused_variables)]
#[instrument(skip(self))]
async fn sock_recv<'a>(
&mut self,
Expand All @@ -1835,6 +1835,7 @@ impl<
todo!()
}

#[allow(unused_variables)]
#[instrument(skip(self))]
async fn sock_send<'a>(
&mut self,
Expand All @@ -1845,6 +1846,7 @@ impl<
todo!()
}

#[allow(unused_variables)]
#[instrument(skip(self))]
async fn sock_shutdown(
&mut self,
Expand Down

0 comments on commit 6e58532

Please sign in to comment.