From dabff2b8ac98adc4f283e00bf6e200201dde084c Mon Sep 17 00:00:00 2001 From: alemidev Date: Sat, 25 Jun 2022 03:00:16 +0200 Subject: [PATCH] chore: fix warnings --- src/app/gui/panel.rs | 2 -- src/app/gui/source.rs | 4 ++-- src/app/mod.rs | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/app/gui/panel.rs b/src/app/gui/panel.rs index 055bbf6..c97adbb 100644 --- a/src/app/gui/panel.rs +++ b/src/app/gui/panel.rs @@ -1,5 +1,3 @@ -use std::sync::Arc; - use chrono::{Local, Utc}; use eframe::{egui::{ plot::{Corner, GridMark, Legend, Line, Plot, Values}, diff --git a/src/app/gui/source.rs b/src/app/gui/source.rs index 2202c17..fc03c86 100644 --- a/src/app/gui/source.rs +++ b/src/app/gui/source.rs @@ -1,11 +1,11 @@ -use eframe::{egui::{Ui, TextEdit, DragValue, Checkbox, ScrollArea, Context, Layout}, emath::Align}; +use eframe::{egui::{Ui, TextEdit, DragValue, Checkbox, ScrollArea, Layout}, emath::Align}; use tracing::error; use crate::app::{data::source::{Source, Metric}, App}; use super::metric::{metric_edit_ui, metric_display_ui}; -pub fn source_panel(app: &mut App, ctx: &Context, ui: &mut Ui) { +pub fn source_panel(app: &mut App, ui: &mut Ui) { let mut to_swap: Option = None; // let mut to_delete: Option = None; let panels = app.data.panels.read().expect("Panels RwLock poisoned"); diff --git a/src/app/mod.rs b/src/app/mod.rs index 029e764..0855155 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -66,7 +66,7 @@ impl eframe::App for App { SidePanel::left("sources-bar") .width_range(280.0..=800.0) .default_width(330.0) - .show(ctx, |ui| source_panel(self, ctx, ui)); + .show(ctx, |ui| source_panel(self, ui)); } CentralPanel::default().show(ctx, |ui| {