summaryrefslogtreecommitdiffstats
path: root/winit/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-02-09 02:06:31 +0100
committerLibravatar GitHub <noreply@github.com>2024-02-09 02:06:31 +0100
commit073466708eef2b4c6331244e905f6739d8dfb076 (patch)
tree64b41f2deadf0fe1da5ff588d9d04bf351f1bd28 /winit/src
parent111c8bfa7965cad8fe7253c8601e620b8582eaaf (diff)
parentd3043161cfed63099534c9356a67dbd7ee31aed2 (diff)
downloadiced-073466708eef2b4c6331244e905f6739d8dfb076.tar.gz
iced-073466708eef2b4c6331244e905f6739d8dfb076.tar.bz2
iced-073466708eef2b4c6331244e905f6739d8dfb076.zip
Merge pull request #2227 from wyatt-herkamp/update_depends
Update Dependencies.
Diffstat (limited to 'winit/src')
-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(),