Fix compiler warnings in term_socket.rs

- Remove unused FromRawFd import
- Prefix unused parameters with underscore

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Mario Zechner 2025-06-18 13:05:46 +02:00
parent 45f627fddf
commit dd31dfb9f4

View file

@ -5,7 +5,7 @@ use serde_json::json;
use std::env; use std::env;
use std::ffi::CString; use std::ffi::CString;
use std::io::{Read, Write}; use std::io::{Read, Write};
use std::os::unix::io::{AsRawFd, FromRawFd, RawFd}; use std::os::unix::io::{AsRawFd, RawFd};
use std::os::unix::net::UnixStream; use std::os::unix::net::UnixStream;
use uuid::Uuid; use uuid::Uuid;
use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::atomic::{AtomicBool, Ordering};
@ -336,8 +336,8 @@ fn spawn_via_pty(command: &[String], working_dir: Option<&str>) -> Result<String
fn handle_pty_session( fn handle_pty_session(
master_fd: RawFd, master_fd: RawFd,
session_id: &str, session_id: &str,
command: &[String], _command: &[String],
working_dir: Option<&str>, _working_dir: Option<&str>,
) -> Result<()> { ) -> Result<()> {
use std::fs::OpenOptions; use std::fs::OpenOptions;
use std::io::BufWriter; use std::io::BufWriter;