chore: fix warnings

This commit is contained in:
əlemi 2022-06-25 03:00:16 +02:00
parent fff0ac7c4b
commit dabff2b8ac
No known key found for this signature in database
GPG key ID: BBCBFE5D7244634E
3 changed files with 3 additions and 5 deletions

View file

@ -1,5 +1,3 @@
use std::sync::Arc;
use chrono::{Local, Utc}; use chrono::{Local, Utc};
use eframe::{egui::{ use eframe::{egui::{
plot::{Corner, GridMark, Legend, Line, Plot, Values}, 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 tracing::error;
use crate::app::{data::source::{Source, Metric}, App}; use crate::app::{data::source::{Source, Metric}, App};
use super::metric::{metric_edit_ui, metric_display_ui}; 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_swap: Option<usize> = None;
// let mut to_delete: Option<usize> = None; // let mut to_delete: Option<usize> = None;
let panels = app.data.panels.read().expect("Panels RwLock poisoned"); 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") SidePanel::left("sources-bar")
.width_range(280.0..=800.0) .width_range(280.0..=800.0)
.default_width(330.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| { CentralPanel::default().show(ctx, |ui| {