diff --git a/src/project/display.rs b/src/project/display.rs index ae9116b..a8b946d 100644 --- a/src/project/display.rs +++ b/src/project/display.rs @@ -384,7 +384,7 @@ impl Project { let mut pin_locations: HashMap<(Board, String), egui::Pos2> = HashMap::new(); // iterate through the system boards and draw them on the screen - for (board_idx, board) in self.system.get_all_boards().iter_mut().enumerate() { + for board in self.system.get_all_boards().iter_mut() { let scale_id = egui::Id::new("system_editor_scale_factor"); // set the editor scale factor in memory: @@ -395,7 +395,6 @@ impl Project { // Get the response of the board/pin Ui let board_id = egui::Id::new(board.get_name()); let response = egui::Area::new(board_id).show(ctx, |ui| { - info!("board_id is: {:#?}", board_id); let mut pin_clicked: Option = None; diff --git a/src/project/egui_helpers.rs b/src/project/egui_helpers.rs index 4428cdc..7216348 100644 --- a/src/project/egui_helpers.rs +++ b/src/project/egui_helpers.rs @@ -6,7 +6,6 @@ use std::sync::Arc; use crate::project::Project; use crate::app::icons::{ IconSet, - DEFAULT_ICON_SIZE, }; use egui::{ diff --git a/src/project/mod.rs b/src/project/mod.rs index 17b8313..008fd8e 100644 --- a/src/project/mod.rs +++ b/src/project/mod.rs @@ -25,7 +25,6 @@ mod system; mod test; use system::System; -use std::process::Command; use git2::Repository; @@ -369,7 +368,7 @@ impl Project { // Create a repo to store code self.repo = match Repository::init(self.get_location()) { Ok(repo) => Some(repo), - Err(e) => return Err(ProjectIOError::NoProjectDirectory), + Err(_e) => return Err(ProjectIOError::NoProjectDirectory), }; Ok(())