Rust 1.85 (#25272)
Closes #ISSUE Release Notes: - N/A *or* Added/Fixed/Improved ... --------- Co-authored-by: Anthony Eid <hello@anthonyeid.me>
This commit is contained in:
parent
fc52b43159
commit
e4e758db3a
68 changed files with 180 additions and 190 deletions
|
@ -123,10 +123,7 @@ impl PtyProcessInfo {
|
|||
|
||||
fn load(&mut self) -> Option<ProcessInfo> {
|
||||
let process = self.refresh()?;
|
||||
let cwd = process
|
||||
.cwd()
|
||||
.take()
|
||||
.map_or(PathBuf::new(), |p| p.to_owned());
|
||||
let cwd = process.cwd().map_or(PathBuf::new(), |p| p.to_owned());
|
||||
|
||||
let info = ProcessInfo {
|
||||
name: process.name().to_str()?.to_owned(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue