chore: fix warnings

This commit is contained in:
əlemi 2022-06-25 03:00:16 +02:00
parent 068969b23f
commit 759c11a5b5
Signed by: alemi
GPG key ID: A4895B84D311642C
3 changed files with 3 additions and 5 deletions

View file

@ -1,5 +1,3 @@
use std::sync::Arc;
use chrono::{Local, Utc};
use eframe::{egui::{
plot::{Corner, GridMark, Legend, Line, Plot, Values},

View file

@ -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<usize> = None;
// let mut to_delete: Option<usize> = None;
let panels = app.data.panels.read().expect("Panels RwLock poisoned");

View file

@ -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| {