diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2024-10-19 14:59:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-19 21:59:39 +0000 |
commit | 473e3069de4bf5877a6f1140aa0462e05f745536 (patch) | |
tree | 7d26a38a78f3f8552f83c0112196004531b46e44 /runtime | |
parent | 85709c70abb538cf22df73261bc37453e7cb07a7 (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')
-rw-r--r-- | runtime/ops/tty.rs | 3 |
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 { |