diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2022-03-14 23:38:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-14 23:38:53 +0100 |
commit | 88d0f01948b68f4a4d87e02a5138e94ac0a6eaea (patch) | |
tree | 2b50e5d2c6990c94f47e604281f3557b3efd9736 /runtime/ops/tty.rs | |
parent | 9f494dc405afc4b1b29fa4c813bd5751f26aaa36 (diff) |
feat(ops): custom arity (#13949)
Also cleanup & drop ignored wildcard op-args
Diffstat (limited to 'runtime/ops/tty.rs')
-rw-r--r-- | runtime/ops/tty.rs | 13 |
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"); |