limpiar warnings de Rust
This commit is contained in:
+3
-2
@@ -48,6 +48,7 @@ pub struct Cell {
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
#[allow(dead_code)]
|
||||
pub struct CellMember {
|
||||
pub id: i64,
|
||||
pub cell_id: i64,
|
||||
@@ -627,7 +628,7 @@ pub mod commands {
|
||||
let db_path = state.lock().map_err(|e| e.to_string())?.clone();
|
||||
let conn = get_conn(&db_path).await?;
|
||||
|
||||
let query = if let Some(pid) = initiative_id {
|
||||
let query = if let Some(_pid) = initiative_id {
|
||||
"SELECT id, user_id, initiative_id, date, work_item_id, what_worked_on, progress_pct, impediments, plan_for_tomorrow, hours_spent, created_at FROM daily_logs WHERE user_id = ?1 AND initiative_id = ?2 ORDER BY date DESC"
|
||||
} else {
|
||||
"SELECT id, user_id, initiative_id, date, work_item_id, what_worked_on, progress_pct, impediments, plan_for_tomorrow, hours_spent, created_at FROM daily_logs WHERE user_id = ?1 ORDER BY date DESC"
|
||||
@@ -691,7 +692,7 @@ pub mod commands {
|
||||
let db_path = state.lock().map_err(|e| e.to_string())?.clone();
|
||||
let conn = get_conn(&db_path).await?;
|
||||
|
||||
let query = if let Some(pid) = initiative_id {
|
||||
let query = if let Some(_pid) = initiative_id {
|
||||
"SELECT id, user_id, initiative_id, period, planned_sp, completed_sp, planned_hours, actual_hours, velocity, spi, cpi, compliance_pct, impediment_count, calculated_at FROM performance_snapshots WHERE user_id = ?1 AND initiative_id = ?2 ORDER BY calculated_at DESC"
|
||||
} else {
|
||||
"SELECT id, user_id, initiative_id, period, planned_sp, completed_sp, planned_hours, actual_hours, velocity, spi, cpi, compliance_pct, impediment_count, calculated_at FROM performance_snapshots WHERE user_id = ?1 ORDER BY calculated_at DESC"
|
||||
|
||||
Reference in New Issue
Block a user