Skip to content

Commit

Permalink
slowly cleaning up compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
shulltronics committed Jun 15, 2024
1 parent 2331144 commit f243821
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/project/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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<String> = None;

Expand Down
1 change: 0 additions & 1 deletion src/project/egui_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use std::sync::Arc;
use crate::project::Project;
use crate::app::icons::{
IconSet,
DEFAULT_ICON_SIZE,
};

use egui::{
Expand Down
3 changes: 1 addition & 2 deletions src/project/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ mod system;
mod test;

use system::System;
use std::process::Command;

use git2::Repository;

Expand Down Expand Up @@ -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(())
Expand Down

0 comments on commit f243821

Please sign in to comment.