diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-07-31 19:19:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-31 18:19:15 +0000 |
commit | d5efdeeff149202b24011918984a15389dae98a2 (patch) | |
tree | 4309ef635129b3f6dc5ed5e07a99d0fae23a4020 /runtime/ops/tty.rs | |
parent | 99daad054102dbca7fad704d5e81ada1357331fd (diff) |
refactor: update core extension api usage (#19952)
Diffstat (limited to 'runtime/ops/tty.rs')
-rw-r--r-- | runtime/ops/tty.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/ops/tty.rs b/runtime/ops/tty.rs index b4e4d7340..9c34c512f 100644 --- a/runtime/ops/tty.rs +++ b/runtime/ops/tty.rs @@ -51,6 +51,7 @@ fn get_fd_from_resource( ) -> Result<std::os::windows::io::RawHandle, AnyError> { use winapi::um::handleapi; + #[allow(deprecated)] let Some(handle) = resource.backing_fd() else { return Err(resource_unavailable()); }; @@ -66,6 +67,7 @@ fn get_fd_from_resource( fn get_fd_from_resource( resource: Rc<FileResource>, ) -> Result<std::os::unix::prelude::RawFd, AnyError> { + #[allow(deprecated)] match resource.backing_fd() { Some(fd) => Ok(fd), None => Err(resource_unavailable()), |