mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
uucore: Remove mut of ProcessInformation::tty
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user