summaryrefslogtreecommitdiffstats
path: root/winit/src/system.rs
diff options
context:
space:
mode:
authorLibravatar Wyatt Herkamp <wherkamp@gmail.com>2024-02-01 07:15:59 -0500
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-02-09 01:53:34 +0100
commit149e8b4103008a8c1450c77a04e318097ddcbd22 (patch)
tree78aa8c4846338745cd5b751e7e1093c16b517f7b /winit/src/system.rs
parent111c8bfa7965cad8fe7253c8601e620b8582eaaf (diff)
downloadiced-149e8b4103008a8c1450c77a04e318097ddcbd22.tar.gz
iced-149e8b4103008a8c1450c77a04e318097ddcbd22.tar.bz2
iced-149e8b4103008a8c1450c77a04e318097ddcbd22.zip
Update some dependencies
Diffstat (limited to '')
-rw-r--r--winit/src/system.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/winit/src/system.rs b/winit/src/system.rs
index d4cef60e..c5a5b219 100644
--- a/winit/src/system.rs
+++ b/winit/src/system.rs
@@ -15,7 +15,7 @@ pub fn fetch_information<Message>(
pub(crate) fn information(
graphics_info: compositor::Information,
) -> Information {
- use sysinfo::{CpuExt, ProcessExt, System, SystemExt};
+ use sysinfo::{Process, System};
let mut system = System::new_all();
system.refresh_all();
@@ -23,14 +23,14 @@ pub(crate) fn information(
let memory_used = sysinfo::get_current_pid()
.and_then(|pid| system.process(pid).ok_or("Process not found"))
- .map(ProcessExt::memory)
+ .map(Process::memory)
.ok();
Information {
- system_name: system.name(),
- system_kernel: system.kernel_version(),
- system_version: system.long_os_version(),
- system_short_version: system.os_version(),
+ system_name: System::name(),
+ system_kernel: System::kernel_version(),
+ system_version: System::long_os_version(),
+ system_short_version: System::os_version(),
cpu_brand: cpu.brand().into(),
cpu_cores: system.physical_core_count(),
memory_total: system.total_memory(),