diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-09-21 16:08:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-21 08:08:23 -0600 |
commit | 142449ecab20006c5cfd15462814650596bc034d (patch) | |
tree | b4e796585f870fbf0b1ebe696a474abb1a09d2ac /runtime/ops/tty.rs | |
parent | cf6f649829fbb0562681bc9db0c4c1261d4a40b1 (diff) |
refactor: rewrite some ops to op2 macro (#20603)
Diffstat (limited to 'runtime/ops/tty.rs')
-rw-r--r-- | runtime/ops/tty.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/ops/tty.rs b/runtime/ops/tty.rs index 07a7a0b73..8157a4517 100644 --- a/runtime/ops/tty.rs +++ b/runtime/ops/tty.rs @@ -4,7 +4,6 @@ use std::io::Error; use std::io::IsTerminal; use deno_core::error::AnyError; -use deno_core::op; use deno_core::op2; use deno_core::OpState; use deno_core::ResourceHandle; @@ -188,10 +187,10 @@ fn op_isatty(state: &mut OpState, rid: u32) -> Result<bool, AnyError> { }) } -#[op(fast)] +#[op2(fast)] fn op_console_size( state: &mut OpState, - result: &mut [u32], + #[buffer] result: &mut [u32], ) -> Result<(), AnyError> { fn check_console_size( state: &mut OpState, |