system settings
git clone https://git.lucas.co/cce-system-interface.git
refactor: dyn as_ptr call sites become plain casts (as_ptr left WidgetHost)
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01N4ajhvVZtyEEEus9bodsj3
src/pages/fonts.rs | 1 -
src/pages/system_info.rs | 1 -
2 files changed, 2 deletions(-)
diff --git a/src/pages/fonts.rs b/src/pages/fonts.rs
index 99c6424..7b23bb3 100644
--- a/src/pages/fonts.rs
+++ b/src/pages/fonts.rs
@@ -111,7 +111,6 @@ impl AppPage for FontsState {
// Not every section widget passes through `render_widget`'s registration side
// effect (the menus draw custom); the id-rooted router needs them all resolvable.
fn register_extra_dispatch_roots(&mut self, ctx: &mut cce_ui::context::UiContext) {
- use cce_ui::widget::WidgetHost;
let (id, ptr) = (self.sans_box.id(), self.sans_box.as_ptr_mut());
ctx.register_widget(id, ptr);
let (id, ptr) = (self.serif_box.id(), self.serif_box.as_ptr_mut());
diff --git a/src/pages/system_info.rs b/src/pages/system_info.rs
index 21140dd..1914c34 100644
--- a/src/pages/system_info.rs
+++ b/src/pages/system_info.rs
@@ -835,7 +835,6 @@ impl crate::pages::AppPage for SystemState {
// The governor menus draw custom (no `render_widget` registration side effect);
// the id-rooted router needs them resolvable.
fn register_extra_dispatch_roots(&mut self, ctx: &mut cce_ui::context::UiContext) {
- use cce_ui::widget::WidgetHost;
let (id, ptr) = (self.cpu_gov_menu.id(), self.cpu_gov_menu.as_ptr_mut());
ctx.register_widget(id, ptr);
let (id, ptr) = (self.gpu_gov_menu.id(), self.gpu_gov_menu.as_ptr_mut());