From d1497ae7117ff8cd85b4f98da9155ff06993a879 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Tue, 11 Jul 2023 16:26:39 +0300 Subject: [PATCH] build: optimize imports --- src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 89a298c..92389d4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,7 +15,6 @@ #[macro_use] extern crate rust_i18n; -use eframe::{AppCreator, Renderer, Theme}; #[cfg(target_os = "android")] use winit::platform::android::activity::AndroidApp; @@ -26,7 +25,7 @@ use crate::node::Node; i18n!("locales"); -pub mod node; +mod node; mod wallet; pub mod gui; @@ -59,7 +58,8 @@ fn android_main(app: AndroidApp) { start(options, app_creator(PlatformApp::new(platform))); } -pub fn app_creator(app: PlatformApp) -> AppCreator where PlatformApp: eframe::App { +pub fn app_creator(app: PlatformApp) -> eframe::AppCreator + where PlatformApp: eframe::App { Box::new(|cc| { App::setup_visuals(&cc.egui_ctx); App::setup_fonts(&cc.egui_ctx); @@ -68,9 +68,9 @@ pub fn app_creator(app: PlatformApp) -> AppCreator where Platform }) } -pub fn start(mut options: eframe::NativeOptions, app_creator: AppCreator) { - options.default_theme = Theme::Light; - options.renderer = Renderer::Wgpu; +pub fn start(mut options: eframe::NativeOptions, app_creator: eframe::AppCreator) { + options.default_theme = eframe::Theme::Light; + options.renderer = eframe::Renderer::Wgpu; setup_i18n();