mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 14:52:41 +00:00
uucore: Remove mut
of ProcessInformation::tty
This commit is contained in:
parent
eafed7ede4
commit
c0081d33b7
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue