summaryrefslogtreecommitdiff
path: root/runtime/ops
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2024-10-19 14:59:39 -0700
committerGitHub <noreply@github.com>2024-10-19 21:59:39 +0000
commit473e3069de4bf5877a6f1140aa0462e05f745536 (patch)
tree7d26a38a78f3f8552f83c0112196004531b46e44 /runtime/ops
parent85709c70abb538cf22df73261bc37453e7cb07a7 (diff)
chore: update nix crate (#26422)
Dedupes nix dependency, since `rustyline` depends on a newer version that what we currently use
Diffstat (limited to 'runtime/ops')
-rw-r--r--runtime/ops/tty.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/ops/tty.rs b/runtime/ops/tty.rs
index 5b49e3a24..77e1330b5 100644
--- a/runtime/ops/tty.rs
+++ b/runtime/ops/tty.rs
@@ -244,7 +244,8 @@ fn op_set_raw(
let tty_mode_store = state.borrow::<TtyModeStore>().clone();
let previous_mode = tty_mode_store.get(rid);
- let raw_fd = handle_or_fd;
+ // SAFETY: Nix crate requires value to implement the AsFd trait
+ let raw_fd = unsafe { std::os::fd::BorrowedFd::borrow_raw(handle_or_fd) };
if is_raw {
let mut raw = match previous_mode {