From cf28d223515fbb96d9a722d914beefd96b282f6e Mon Sep 17 00:00:00 2001 From: Christopher Serr Date: Fri, 1 Dec 2023 14:07:30 +0100 Subject: [PATCH] Update egui dependencies This updates `egui` and its related dependencies to the latest version. --- Cargo.toml | 10 +++++----- src/main.rs | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ebde627..b68609e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,12 +7,12 @@ edition = "2021" [dependencies] atomic = "0.6.0" -byte-unit = "4.0.19" +byte-unit = "5.0.3" clap = { version = "4.4.6", default-features = false, features = ["derive", "std"] } -eframe = "0.23.0" -egui_dock = "0.8.0" -egui_file = "0.11.0" -egui_plot = "0.23.0" +eframe = "0.24.1" +egui_dock = "0.9.0" +egui_file = "0.12.0" +egui_plot = "0.24.1" hdrhistogram = { version = "7.5.2", default-features = false } indexmap = "2.0.0" livesplit-auto-splitting = { git = "https://github.com/LiveSplit/livesplit-core" } diff --git a/src/main.rs b/src/main.rs index 52b0e5c..86f50c0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -427,8 +427,8 @@ impl egui_dock::TabViewer for TabViewer<'_> { ui.label("Memory").on_hover_text("The current amount of memory used by the auto splitter (stack, heap, global variables). This excludes the size of the code itself."); ui.horizontal(|ui| { ui.label( - byte_unit::Byte::from_bytes(memory_usage as _) - .get_appropriate_unit(true) + byte_unit::Byte::from_u64(memory_usage as _) + .get_appropriate_unit(byte_unit::UnitType::Binary) .to_string(), ); if ui.button("Dump").clicked() {