From 96c24d729dcea4a14001b0890f6f873c9cb64068 Mon Sep 17 00:00:00 2001 From: Yuki Sireneva Date: Fri, 21 Nov 2025 10:54:01 +0300 Subject: [PATCH] Avoid allocating in `pre_exec` closure --- termproxy/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/termproxy/src/main.rs b/termproxy/src/main.rs index 135468d..31f5a41 100644 --- a/termproxy/src/main.rs +++ b/termproxy/src/main.rs @@ -287,7 +287,7 @@ fn run_pty<'a>(mut full_cmd: impl Iterator) -> Result unsafe { command.pre_exec(move || { - make_controlling_terminal(&secondary_name).map_err(Error::other)?; + make_controlling_terminal(&secondary_name)?; Ok(()) }); }