mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 04:27:45 +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…
Add table
Add a link
Reference in a new issue