diff --git a/meli/src/terminal/embedded.rs b/meli/src/terminal/embedded.rs index b14f920f..f5f3db44 100644 --- a/meli/src/terminal/embedded.rs +++ b/meli/src/terminal/embedded.rs @@ -23,6 +23,7 @@ use std::os::fd::OwnedFd; use std::{ ffi::{CString, OsStr}, + mem::ManuallyDrop, os::unix::{ ffi::OsStrExt, io::{AsRawFd, FromRawFd, IntoRawFd}, @@ -178,7 +179,8 @@ pub fn create_pty(width: usize, height: usize, command: &str) -> Result, /// Pid of the embedded process pub child_pid: nix::unistd::Pid, } @@ -114,7 +114,7 @@ impl std::io::Write for Terminal { } impl Terminal { - pub fn new(stdin: std::fs::File, child_pid: nix::unistd::Pid) -> Self { + pub fn new(stdin: std::mem::ManuallyDrop, child_pid: nix::unistd::Pid) -> Self { Self { grid: EmbeddedGrid::new(), stdin,