mirror of
https://git.alemi.dev/dashboard.git
synced 2024-11-14 03:49:19 +01:00
chore: remove warnings
This commit is contained in:
parent
32d68691a1
commit
1100b5f5fe
2 changed files with 3 additions and 6 deletions
|
@ -123,8 +123,8 @@ impl EditingModel {
|
|||
},
|
||||
metrics: view.metrics.borrow().iter()
|
||||
.enumerate()
|
||||
.filter(|(i,x)| *metrics.get(*i).unwrap_or(&false))
|
||||
.map(|(i,m)| entities::panel_metric::ActiveModel {
|
||||
.filter(|(i, _x)| *metrics.get(*i).unwrap_or(&false))
|
||||
.map(|(_i, m)| entities::panel_metric::ActiveModel {
|
||||
id: NotSet,
|
||||
panel_id: Set(panel.id),
|
||||
metric_id: Set(m.id),
|
||||
|
|
|
@ -11,8 +11,6 @@ use super::metric::metric_edit_ui;
|
|||
|
||||
pub fn source_panel(app: &mut App, ui: &mut Ui) {
|
||||
let source_to_put_metric_on : Option<i64> = None;
|
||||
let mut to_swap: Option<usize> = None;
|
||||
let _to_insert: Vec<entities::metrics::Model> = Vec::new();
|
||||
// let mut to_delete: Option<usize> = None;
|
||||
let panels = &app.panels;
|
||||
let panel_width = ui.available_width();
|
||||
|
@ -23,10 +21,9 @@ pub fn source_panel(app: &mut App, ui: &mut Ui) {
|
|||
// TODO only vertical!
|
||||
{
|
||||
let sources = app.view.sources.borrow();
|
||||
let sources_count = sources.len();
|
||||
ui.heading("Sources");
|
||||
ui.separator();
|
||||
for (i, source) in sources.iter().enumerate() {
|
||||
for source in sources.iter() {
|
||||
ui.horizontal(|ui| {
|
||||
ui.vertical(|ui| {
|
||||
ui.add_space(10.0);
|
||||
|
|
Loading…
Reference in a new issue