summaryrefslogtreecommitdiff
path: root/runtime/ops/tty.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ops/tty.rs')
-rw-r--r--runtime/ops/tty.rs13
1 files changed, 2 insertions, 11 deletions
diff --git a/runtime/ops/tty.rs b/runtime/ops/tty.rs
index bbf6bd412..465fb1679 100644
--- a/runtime/ops/tty.rs
+++ b/runtime/ops/tty.rs
@@ -68,11 +68,7 @@ pub struct SetRawArgs {
}
#[op]
-fn op_set_raw(
- state: &mut OpState,
- args: SetRawArgs,
- _: (),
-) -> Result<(), AnyError> {
+fn op_set_raw(state: &mut OpState, args: SetRawArgs) -> Result<(), AnyError> {
super::check_unstable(state, "Deno.setRaw");
let rid = args.rid;
@@ -213,11 +209,7 @@ fn op_set_raw(
}
#[op]
-fn op_isatty(
- state: &mut OpState,
- rid: ResourceId,
- _: (),
-) -> Result<bool, AnyError> {
+fn op_isatty(state: &mut OpState, rid: ResourceId) -> Result<bool, AnyError> {
let isatty: bool = StdFileResource::with(state, rid, move |r| match r {
Ok(std_file) => {
#[cfg(windows)]
@@ -251,7 +243,6 @@ struct ConsoleSize {
fn op_console_size(
state: &mut OpState,
rid: ResourceId,
- _: (),
) -> Result<ConsoleSize, AnyError> {
super::check_unstable(state, "Deno.consoleSize");