Fix clippy::redundant-closure-for-method-calls
This commit is contained in:
parent
caed50b277
commit
1e4bade53a
3 changed files with 6 additions and 4 deletions
|
|
@ -23,7 +23,7 @@ pub(crate) fn information(
|
|||
|
||||
let memory_used = sysinfo::get_current_pid()
|
||||
.and_then(|pid| system.process(pid).ok_or("Process not found"))
|
||||
.map(|process| process.memory())
|
||||
.map(ProcessExt::memory)
|
||||
.ok();
|
||||
|
||||
Information {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue