mirror of
https://git.alemi.dev/dashboard.git
synced 2024-11-22 23:44:55 +01:00
chore: fix warnings
This commit is contained in:
parent
fff0ac7c4b
commit
dabff2b8ac
3 changed files with 3 additions and 5 deletions
|
@ -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},
|
||||||
|
|
|
@ -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");
|
||||||
|
|
|
@ -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| {
|
||||||
|
|
Loading…
Reference in a new issue