Fix clippy::redundant-closure-for-method-calls

This commit is contained in:
Héctor Ramón Jiménez 2023-09-20 05:07:34 +02:00
parent caed50b277
commit 1e4bade53a
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 6 additions and 4 deletions

View file

@ -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 {