From c0081d33b7938d7196074557703a08b34c80939f Mon Sep 17 00:00:00 2001 From: Krysztal Huang Date: Mon, 29 Jul 2024 01:04:40 +0800 Subject: [PATCH] uucore: Remove `mut` of `ProcessInformation::tty` --- src/uucore/src/lib/features/proc_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uucore/src/lib/features/proc_info.rs b/src/uucore/src/lib/features/proc_info.rs index cd36ab427..aa143a22b 100644 --- a/src/uucore/src/lib/features/proc_info.rs +++ b/src/uucore/src/lib/features/proc_info.rs @@ -245,7 +245,7 @@ impl ProcessInformation { /// the result will contain [TerminalType::Unknown]. /// /// Otherwise [TerminalType::Unknown] does not appear in the result. - pub fn tty(&mut self) -> Teletype { + pub fn tty(&self) -> Teletype { let path = PathBuf::from(format!("/proc/{}/fd", self.pid)); let Ok(result) = fs::read_dir(path) else {