mirror of
https://git.alemi.dev/dashboard.git
synced 2024-11-14 03:49:19 +01:00
chore: fix warnings
This commit is contained in:
parent
068969b23f
commit
759c11a5b5
3 changed files with 3 additions and 5 deletions
|
@ -1,5 +1,3 @@
|
|||
use std::sync::Arc;
|
||||
|
||||
use chrono::{Local, Utc};
|
||||
use eframe::{egui::{
|
||||
plot::{Corner, GridMark, Legend, Line, Plot, Values},
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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| {
|
||||
|
|
Loading…
Reference in a new issue